How to avoid using the pinnaclesportsapi plug-in to update within five seconds

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.