Football

FREE
By olyans | Updated 8 giorni fa | Sports
Popularity

8 / 10

Latency

37ms

Service Level

100%

Health Check

N/A

Back to All Discussions

how do I take last seasons results to make test with football api?

Rapid account: Malilov
Malilov
5 anni fa

I want to use football Api and I put this code :

<?php

require_once ‘unirest-php/src/Unirest.php’;

$headers = array(‘Accept’ => ‘application/json’);

response = Unirest\Request::POST("https://football6.p.rapidapi.com//leagues/season/", array( "X-RapidAPI-Host" => "football6.p.rapidapi.com", "X-RapidAPI-Key" => "0287792a9fmsh4570c9cfad47977p1bd26bjsnb629f1df3bfc" ) ); echo '<pre>'; echo print_r(response);
echo ‘</pre>’;
?>

but the response returned :

Unirest\Response Object
(
[code] => 404
[raw_body] => {“message”:“Endpoint/leagues/season/ does not exist”}
[body] => stdClass Object
(
[message] => Endpoint/leagues/season/ does not exist
)

[headers] =&gt; Array
    (
        [0] =&gt; HTTP/1.1 404 Not Found
        [Content-Type] =&gt; application/json
        [Date] =&gt; Thu, 25 Jul 2019 09:14:55 GMT
        [Server] =&gt; RapidAPI-1.0.20
        [X-RapidAPI-Proxy-Response] =&gt; true
        [X-RapidAPI-Region] =&gt; AWS - eu-central-1
        [X-RapidAPI-Version] =&gt; 1.0.20
        [Content-Length] =&gt; 56
        [Connection] =&gt; keep-alive
    )

)
1

I make test with football api but now all seasons finished.

how do I take last seasons results to make test with football api?

Join in the discussion - add comment below:

Login / Signup to post new comments