The official website is as follows: http://www.pinnaclesports.com/information.aspx?id=36128
The official website is updated for a limited five seconds.
Is there any way to shorten the time to 1 seconds or 2-3 seconds?
The API data fetching method is as follows:
$url = 'https://api.pinnaclesports.com/v1/feed?sportid=3&leagueid=233&oddsformat=2';$credentials = base64_encode("账号:密码");$header[] = 'Content-length: 0';$header[] = 'Content-type: application/json';$header[] = 'Authorization: Basic ' . $credentials;$httpChannel = curl_init();curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);curl_close($httpChannel);
Whether the man-in-God has this experience can be for younger brother reference, so that I have a direction to carry out the experiment. Certainly not many people have used this API. But to have the God-man have, "similar" to this aspect, "Avoid time-limited updates" experience can be shared, thank
Reply content:
The official website is as follows: http://www.pinnaclesports.com/information.aspx?id=36128
The official website is updated for a limited five seconds.
Is there any way to shorten the time to 1 seconds or 2-3 seconds?
The API data fetching method is as follows:
$url = 'https://api.pinnaclesports.com/v1/feed?sportid=3&leagueid=233&oddsformat=2';$credentials = base64_encode("账号:密码");$header[] = 'Content-length: 0';$header[] = 'Content-type: application/json';$header[] = 'Authorization: Basic ' . $credentials;$httpChannel = curl_init();curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);curl_close($httpChannel);
Whether the man-in-God has this experience can be for younger brother reference, so that I have a direction to carry out the experiment. Certainly not many people have used this API. But to have the God-man have, "similar" to this aspect, "Avoid time-limited updates" experience can be shared, thank
Use of five accounts
Beauty, are you done with this thing? I'm also trying to develop a code to get Pinnacle Sports's data. But getting accounts is a hassle, do you know they have a common test account? You can use an account to get basic information through the API, such as race sessions and time, then write your own HTTP requests, keep getting the Web content, get the data you want, and circumvent the five-second limit.