-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Getting data for fixtures by date #135
Comments
Seems to be a unexpected response when you don't send the If we are working on node should be something like: const axios = require('axios');
const response = await axios.post(
'http://api.cup2022.ir/api/v1/bydate',
{
'date': '12/2/2022'
},
{
headers: {
'Authorization': 'Bearer {your_token_goes_here}',
'Content-Type': 'application/json'
}
}
); We can use the curl version in order to convert to other language as you wish in this site |
The Content-Type was added to the header when making the calls yet we don't get response for matches based on date. 'http://api.cup2022.ir/api/v1/bydate', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "date": "12/06/2022" }', CURLOPT_HTTPHEADER => array( ': ', 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MzdjNGFkODQ4NzA5MjMzZmQ4NWM3OGYiLCJpYXQiOjE2NzA0MTQ1NzAsImV4cCI6MTY3MDUwMDk3MH0.V9yY7CxuptQKgRBaMlDGiz8zRLYc2cOlW8r0P-0uKkc', 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
{
"date":"12/6/2022"
}
…On Wed, Dec 7, 2022 at 3:35 PM Mustapha oyeleye ***@***.***> wrote:
The Content-Type was added to the header when making the calls yet we
don't get response for matches based on date.
'http://api.cup2022.ir/api/v1/bydate', CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION =>
CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS
=>'{ "date": "12/06/2022" }', CURLOPT_HTTPHEADER => array( ': ',
'Authorization: Bearer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MzdjNGFkODQ4NzA5MjMzZmQ4NWM3OGYiLCJpYXQiOjE2NzA0MTQ1NzAsImV4cCI6MTY3MDUwMDk3MH0.V9yY7CxuptQKgRBaMlDGiz8zRLYc2cOlW8r0P-0uKkc',
'Content-Type: application/json' ), )); $response = curl_exec($curl);
curl_close($curl); echo $response;
—
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC4WPQQH46CGQPOTXHYKHGLWMB4R7ANCNFSM6AAAAAASVPF3GM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Kind regards
Reza Rahiminia
|
not getting any data for { |
On the 7th and 8th, the game will not be played at all
…On Wed, Dec 7, 2022 at 6:10 PM Mustapha oyeleye ***@***.***> wrote:
not getting any data for {
"date":"12/7/2022"
}
—
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC4WPQXHRBIIXQQ7QPWOJPLWMCOXBANCNFSM6AAAAAASVPF3GM>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Kind regards
Reza Rahiminia
|
Thank you for yout help. |
We currently use the api to get matches per day until recently we noticed we are not getting data for fixtures by date anymore.
The text was updated successfully, but these errors were encountered: