IP Info

무료
분류별 NeutrinoAPI.com | 업데이트됨 23 days ago | Location
인기

9.3 / 10

지연 시간

54ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

403

Rapid account: Garrylachman
garrylachman
8 years ago

php return 403 - unirest
the basic example

Rapid account: Garrylachman
garrylachman Commented 8 years ago

the solution was add http_build_query to data array in unirest

Rapid account: Garrylachman
garrylachman Commented 8 years ago

<code>
$response = Unirest\Request::post(“https://community-neutrino-ip-info.p.mashape.com/ip-info”,
array(
“X-Mashape-Key” => “XXX”,
“Content-Type” => “application/x-www-form-urlencoded”,
“Accept” => “application/json”
),
array(
“ip” => “5.29.224.80”,
“reverse-lookup” => true
)
);
</code>

Just copy & past from Mashape Snippet

Rapid account: Neutrinoapi
neutrinoapi Commented 8 years ago

Hey Garry,
403 usually means your API key or User ID is missing or incorrect…
You could try this PHP snippet: https://www.neutrinoapi.com/api/api-examples/php/

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입