Client ID Update - Updating old plugin - Help

@kaugesaar has a working example.

You could also update getApiUrl to append the client ID to the URL and then update all of your other methods to replace the ? with an &. It’d look something like this:

public function getApiUri($type){
   ...
   return $apiCalls[$type] . "?client_id=XXXXX";
}

public function getFeatured($game){
   $s = file_get_contents($this->getApiUri("streams")."&game=" ...
   ...
}

It may be hard to spot, but notice that the question mark in getFeatured was replaced with an ampersand. That’s the important part. Otherwise, you end up with an incorrect URL like: /streams?client_id=XXXX?game=... The client_id can be anywhere in the URL.