Hitakashi / Hitbox-API

This is an unofficial documentation of hitbox.tv API. DEPRECATED, Check readme
19 stars 3 forks source link

Hitbox/Smashcast API out of date? #12

Open AlmostInteractive opened 5 years ago

AlmostInteractive commented 5 years ago

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 commented 5 years ago

/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.