justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

[Question] PUT /channels/:channel #119

Closed noxx2 closed 10 years ago

noxx2 commented 10 years ago

Hi, I am trying to create a custom interface through which I can edit my stream info, by using TwitchTV "PUT /channels/:channel". I'm using PHP + CURL for this. I've tried tons of variants, but none seemed to work. This one is nearest to a good result (in my opinion), but still throwing errors. I'm basically json_encoding an array which includes the things I want to change, then PUTting it, but it doesnt work. The attached images are 2: first is a screenshot from my IDE and the second is the error it shows. Any ideas on what am I doing wrong? Thanks for help in advance! Image 1 problem1 Image 2 problem2

mpoon commented 10 years ago

Github issues is not quite the right place for questions. Please redirect questions to the developer forums, mailing list, or IRC.

This should help you out though: http://developers.sugarcrm.com/wordpress/2011/11/22/howto-do-put-requests-with-php-curl-without-writing-to-a-file/

noxx2 commented 10 years ago

Thanks, it worked ;) And sorry about that.