Official Website: www. pinnaclesports. cominformation. aspx? The id36128 official website is updated within five seconds. Is there any way to shorten the time to 1 second or 2-3 seconds. The Api data capture method is as follows: {code...} is there any experience of this person in this area... the official website is as follows: http://www.pinnaclesports.com/information.aspx? Id = 36128
Official website updates within five seconds.
Is there any way to shorten the time to 1 second or 2-3 seconds.
The following describes how to capture Api data:
$ Url = 'https: // api.pinnaclesports.com/v1/feed? Sportid = 3 & leagueid = 233 & oddsformat = 2'; $ credentials = base64_encode ("account: Password"); $ 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, success, true); curl_setopt ($ httpChannel, CURLOPT_HTTPHEADER, $ header); curl_setopt ($ httpChannel, CURLOPT_SSL_VERIFYPEER, false); $ data = curl_exec ($ httpChannel); curl_close ($ httpChannel );
Is there any experience from this kind of person available for your reference, so that I can come to the lab. Of course there are not many people who have used this api. However, if you are a real person, you can share your experience in "similar" and "Avoid time-limit updates". Thank you.
Reply content:
Official website is as follows: http://www.pinnaclesports.com/information.aspx? Id = 36128
Official website updates within five seconds.
Is there any way to shorten the time to 1 second or 2-3 seconds.
The following describes how to capture Api data:
$ Url = 'https: // api.pinnaclesports.com/v1/feed? Sportid = 3 & leagueid = 233 & oddsformat = 2'; $ credentials = base64_encode ("account: Password"); $ 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, success, true); curl_setopt ($ httpChannel, CURLOPT_HTTPHEADER, $ header); curl_setopt ($ httpChannel, CURLOPT_SSL_VERIFYPEER, false); $ data = curl_exec ($ httpChannel); curl_close ($ httpChannel );
Is there any experience from this kind of person available for your reference, so that I can come to the lab. Of course there are not many people who have used this api. However, if you are a real person, you can share your experience in "similar" and "Avoid time-limit updates". Thank you.
Use five accounts
Beauty, have you done this? I am also trying to develop a code to get Pinnacle Sports data. But it is very troublesome to get an account. Do you know they have a public test account. You can use an account to obtain basic information through the API, such as the game session and time, and then write an HTTP request by yourself to continuously obtain the webpage content, get the desired data, and avoid the limit of five seconds.