Answer the question
In order to leave comments, you need to log in
How to work with private API ( periscope )?
I found a library for using the periscope API... I have very little
experience with closed APIs, I can't figure it out at all
.
$ch = curl_init('https://api.periscope.tv/api/v2/loginTwitter?build=v1.0.2');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_NOBODY, 1);
$data = array(
"bundle_id" => "com.bountylabs.periscope",
"phone_number" => "",
"session_key" => "nFIaOYJXfNJhgkg5kFlndRjx8",
"session_secret" => "<XMxruYe5qRPy6aEdLs2ae6VB3GXqbsl2gaDfynYAjhVDohNgmB>",
"user_id" => "nfdsalbgbd",
"user_name" => "Eugene",
"vendor_id" => "81EA8A9B-2950-40CD-9365-40535404DDE4"
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_COOKIEJAR, "my_cookies.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
print curl_exec($ch);
curl_close($ch);
Answer the question
In order to leave comments, you need to log in
Session_key and Secret_key taken from the Twitter API (registered the application, gave these keys)
What can be done? this is at least the ability to view the broadcast from the site or display a preview of the current broadcast (for a specific channel). You can also find out if there is a broadcast at the moment) I hope this can be implemented? I thought about it for broadcasting a show on Internet radio))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question