Twitch api how to user follow and unfollow

I was trying the blocking code
the code I use to track this way:
curl_setopt($th, CURLOPT_URL, ‘https://api.twitch.tv/kraken/users/’.$myid.’/follows/channels/’.$yid);