I am gonna make designs for streamers and ask them to put my link in their panel(under bio-donate etc links.). I want to make a page on my local host to see if they have my link in their profile. I used cURL but I couldn’t get anything. And I don’t know anything API. How can I do it?
Edit: OK I solved it.
Using panels api was the solution. I didn’t know the panels api thing.
http://api.twitch.tv/api/channels/coyistik/panels
<?php
$ch = curl_init("https://www.twitch.tv/coyistik/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 " );
$text = curl_exec($ch);
$test = strpos($text, 'https://www.facebook.com/coyistik');
if ($test==false)
{
echo "no";
echo $text;
}
else
{
echo "yes";
}
?>