Hello,
I have an issue with using the API from an IPS forum. The response for https://api.twitch.tv/helix/streams/?first=100&user_login=userlogin&user_login=userlogin2 is always empty:
{“data”:[],“pagination”:{}}
But when i do with curl command line, same request, with same Client-ID, from same server, all is fine:
curl -H ‘Client-ID: lxxxxxxxxxxxxxxxx’ -X GET ‘https://api.twitch.tv/helix/streams/?first=100&user_login=userlogin&user_login=userlogin’
{“data”:[{“id”:“xxxxxxxxx”,“user_id”:“xxxxxxxxxx”,“game_id”:“xxxxxxxxxxxxx”,“community_ids”:[],“type”:“live”,“title”:“xxxxxxxxx”,“viewer_count”:125,“started_at”:“2018-05-11T10:06:35Z”,“language”:“en”,“thumbnail_url”:“https://static-cdn.jtvnw.net/previews-ttv/live_user_userlogin-{width}x{height}.jpg"}],“pagination”:{“cursor”:"eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MX19”}}
From what i know IPS forum is using php curl.
Can anyone help me out in solving this issue?
Thanks