Hello! I am trying to get the information of one or more channels through the API. But I don’t know how it works. I have look the guide (https://dev.twitch.tv/docs/v5/reference/channels#get-channel) and also looked at the forums. A few years ago I managed to do the same with the youtube API using PHP. I’m trying to get the same thing this time with Twitch channels but without success, for the moment. I don’t know how Json works.
I see the code in the guide but I do not know how to translate it into a working file online. Can I put this code on my server and execute it to get this information in a php file or something? My intention is to extract the result info data using php functions.
Reach this point:
curl -H 'Accept: application/vnd.twitchtv.v5+json'
-H 'Client-ID: MyChannel-ID'
-X GET 'https://api.twitch.tv/kraken/users?login=Channelname'
I’m triyng to put this code working on a php file or similar, and when the php is executed in my server, displays the information of the specific channel. Same info of this example: https://dev.twitch.tv/docs/v5/reference/channels#get-channel