I am attempting to pull in user information by login and am running into some trouble. When I run the following: https://api.twitch.tv/helix/users?login=Xpecial - I get back mostly what I expect {"data":[{"id":"30080741","login":"xpecial","display_name":"Xpecial","type":"","broadcaster_type":"partner","description":"Info","profile_image_url":"url","offline_image_url":"","view_count":24286677}]}1
I am attempting to figure out why the random 1 is returning at the end, I am new to this but it seems odd.
I am also attempting to pull in multiple users in one request with: https://api.twitch.tv/helix/users?login=Xpecial,BunnyFuFuu - in this case I instead receive {"data":[]}1
Does anyone know why I am getting the 1 at the end of both? Additionally, am I doing something wrong with my request for multiple users?
Of course I miss the obvious information at the top of the page… Thank you for pointing me to that.
Regarding the call to it this is what I am sending:
`function get_newtwitchapi_curl($url) {
global $appID, $appSecret;
$curlHeader = array(
"Client-ID: " . $appID,
"Authorization: " . $appSecret
);