I was wondering how can I get the number after ‘OAuth’???
Also, after I registered the app, the client secret is not shown. Do I need to click New Secret to get that? If I do not need to click, where else I can get client secret? If I do need to, do I need to submit to update this client secret?
That is the OAuth Authorization Code Flow (User Access Tokens) yes?
You must first redirect the user to Twitch as per step 1.
Send the user you want to authenticate to your registered redirect URI. Then, an authorization page will ask the user to sign up or log into Twitch and allow the user to choose whether to authorize your application/identity system. Use this request:
If all you care about is whether a stream is online or offline you don’t need an oauth token. It can be done with either Helix or Kraken with only a client ID.
curl -H 'Client-ID: YOUR-CLIENT-ID' \
-X GET 'https://api.twitch.tv/helix/streams?user_login=lirik'
Online:
{"data":[{"id":"27586417744","user_id":"23161357","game_id":"459841","community_ids":[],"type":"live","title":"MONDAY IN 2018 LUL ","viewer_count":32951,"started_at":"2018-02-12T19:35:08Z","language":"en","thumbnail_url":"https://static-cdn.jtvnw.net/previews-ttv/live_user_lirik-{width}x{height}.jpg"}],"pagination":{"cursor":"eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MX19"}}
It might help if you tell us what your application is designed to do.
You will need to implement an OAuth flow if you need access to subscription lists with the access being granted by the channel owner to which the users are subbed.
I am new to twitch tv api, at this moment I just want to build an easy app (for practice purpose) to get a specific user’s subscribers’ status information.
No, your client id doesn’t typically change. Your secret can change (normally in the event it was leaked). Your client id is not tied to your secret in any meaningful way.
thanks a lot for all the answers i’ve got here! i really appreciate it as i was searching for same things. may i ask questions in case i would have some? thanks again