Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the new Open Cloud API #504

Merged
merged 11 commits into from
Apr 19, 2022
Merged

Conversation

VernandoGames
Copy link
Contributor

Closes #486 by providing a --api_key along with --universe_id in place of --cookie. Universe ID is required in order to use the open cloud api.
So new upload commands will look like rojo upload --api_key <API_KEY> --asset_id <PLACE_ID> --universe_id <UNIVERSE_ID> [project file]
Instead of rojo upload --cookie <COOKIE> --asset_id <PLACE_ID> [project file]

This was made with an accumulative ~3 hours of experience with rust, so I'm sure things could be done better and I'm open to suggestions. Most notably lines 48-68.

src/cli/upload.rs Outdated Show resolved Hide resolved
@VernandoGames
Copy link
Contributor Author

I believe this build is ready to be merged btw, The last commit was just to fix some formatting issues found with cargo fmt.

src/cli/upload.rs Outdated Show resolved Hide resolved
src/cli/upload.rs Outdated Show resolved Hide resolved
src/cli/upload.rs Outdated Show resolved Hide resolved
src/cli/upload.rs Outdated Show resolved Hide resolved
src/cli/upload.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@LPGhatguy LPGhatguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks excellent, sorry for the long turnaround!

@LPGhatguy LPGhatguy merged commit 1237084 into rojo-rbx:master Apr 19, 2022
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
* Add support for the new Open Cloud API

* Cleanup Open Cloud variables

* Avoid cloning buffer for do_upload_open_cloud

* Satisfy cargo fmt

* Actually correct cargo fmt

Apparently my earlier fix did not fix everything.

* Update CHANGELOG.md

* Update CHANGELOG.md

Forgot to add the link to issue rojo-rbx#486 in the previous commit :/

* Cleanup & improve code for open cloud api

* Commit to force GH Actions to run (?)

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
@Wingysam
Copy link

@VernandoGames @LPGhatguy Maybe use https://apis.roblox.com/universes/v1/places/:placeId/universe if the Universe ID isn't set to automatically fetch it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the new Open Cloud endpoint for uploading
4 participants