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

Add support for the Roblox Open Cloud API #8

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

kennethloeffler
Copy link
Member

@kennethloeffler kennethloeffler commented Nov 30, 2023

This PR closes #1 by adding support for the Open Cloud API to Tarmac.

It adds a new global option: --api-key. If not specified in a command, Tarmac will attempt to read it from the environment variable TARMAC_API_KEY. When this option is present, Tarmac will use Open Cloud. Otherwise, it will fall back to the legacy API.

It adds a new field to the project format: upload-to-user-id. This field (or upload-to-group-id) is required when using Open Cloud, and is mutually exclusive with upload-to-group-id. If the user provides both, or neither are present when using Open Cloud, Tarmac will raise an error.

Lastly, it adds two new options to the upload-image command: user-id and group-id. Likewise, one of these is required to use the Open Cloud API, and they are mutually exclusive.

Because there's no way to download assets using Open Cloud yet, the implementation here always falls back to the legacy API to download assets. This functionality is broken right now anyway (the endpoint is returning a 404 page), but fixing it is not relevant for this PR!

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.

Add Cloud API support
1 participant