EliasRanz / twitchtv-oauth

A Open Source PHP Library that allows you to do various features via the TwitchTV API, including getting stats on your stream, updating your stream title/game, and running commercials. Future updates will be made to https://github.com/Xxplosions/twitch-api
19 stars 9 forks source link

Error converting to string #5

Closed Streusel closed 8 years ago

Streusel commented 8 years ago

https://github.com/Xxplosions/twitchtv-oauth/blob/master/twitchtv.php#L74 And other instances of where $fields is being used needs to be wrapped in http_build_query() such that we have this following result: curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields));

EliasRanz commented 8 years ago

Updated all the references should be all set let me know if there are any other bugs and I'll be sure to work them out. Sorry about such a long delay. If you come across anything and want to merge changes into the actual project go for it.