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

Hitbox/Smashcast API out of date? #12

Open
AlmostInteractive opened this issue Sep 3, 2019 · 1 comment
Open

Hitbox/Smashcast API out of date? #12

AlmostInteractive opened this issue Sep 3, 2019 · 1 comment

Comments

@AlmostInteractive
Copy link

There's no contact information for Hitbox / Smashcast developer support except your deprecated Github; sorry.

I haven't checked all of the endpoints, but the "Check Token" endpoint seems to be out of date, as any post to https://api.smashcast.tv/auth/valid/{appName | appId}?token={authToken} reports {"success":true,"error":false,"error_msg":"auth_failed"}

There also appears to be no way to get the App Id; I found mine by saving my app details and looking at the POST information:

https://www.smashcast.tv/api/oauthapps/{my app name}/{my app id}?authToken={their auth token}

@Hitakashi
Copy link
Owner

/auth/valid/:app?token=authToken takes an application name, not an id. I just tested it with a token generated via oauth, and it still does work. I don't think this endpoint can handle apps with spaces.

/oauthapps does have a GET located at /oauthapps/:user_name that returns a list of all your applications, including their Ids an Names.

It's generally easier to use this api as it doesn't need a app.

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

No branches or pull requests

2 participants