I try to call below APIs to get information from a valid twitch token, it seems that clientId which was used to generate token is not included in the token information. Is there any other API or additional parameter that can be used to obatin the clientId? It’s important for our business to double validate the twitch token is from an expected clientid of our own clientIds. Thanks for your help!
curl -H “Authorization: OAuth q2j3rstfv4w0dcev7q5w2ibipvs9pg” https://api.twitch.tv/kraken/
{"_links":{“user”:“https://api.twitch.tv/kraken/user",“channel”:“https://api.twitch.tv/kraken/channel”,“search”:“https://api.twitch.tv/kraken/search”,“streams”:“https://api.twitch.tv/kraken/streams/enlightma”,“ingests”:“https://api.twitch.tv/kraken/ingests”,“teams”:“https://api.twitch.tv/kraken/teams”,“users”:“https://api.twitch.tv/kraken/users/enlightma”,“channels”:“https://api.twitch.tv/kraken/channels/enlightma”,“chat”:“https://api.twitch.tv/kraken/chat/enlightma”},“token”:{“valid”:true,“authorization”:{“scopes”:[“user_read”,“channel_read”],“created_at”:“2016-01-28T23:38:09.216553Z”,“updated_at”:“2016-01-28T15:43:19.824867Z”},“user_name”:"enlightma”}}
curl -H “Authorization: OAuth 558e2tzq81tpux65atmvnxalh6j65t” https://api.twitch.tv/kraken/user
{“display_name”:“enlightma”,"_id":98270952,“name”:“enlightma”,“type”:“user”,“bio”:null,“created_at”:“2015-08-04T22:59:33Z”,“updated_at”:“2016-02-17T20:01:54Z”,“logo”:null,"_links":{“self”:“https://api.twitch.tv/kraken/users/enlightma"},“email”:“dongqingmafdu@gmail.com”,“partnered”:false,“notifications”:{“push”:false,"email”:true}}
“_id”:98270952