API return status 200, but empty responce

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

Sounds like a problem with the IPS forum’s handler that handles cURL requests. I anticpate that it uses a library and the library cannot handle two parameters of the same key in the URL?

Try the equivalent request to the users endpoint for helix with your code logic and see if the bug occurs again.

https://api.twitch.tv/helix/users?login=userlogin&login=userlogin2

But with valid users and see if you get two users back with your IPS call.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.