IP Info

חינם
על ידי NeutrinoAPI.com | מְעוּדכָּן לפני 22 ימים | Location
פּוֹפּוּלָרִיוּת

9.3 / 10

חֶבִיוֹן

54ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

403

Rapid account: Garrylachman
garrylachman
לפני 8 שנים

php return 403 - unirest
the basic example

Rapid account: Garrylachman
garrylachman Commented לפני 8 שנים

the solution was add http_build_query to data array in unirest

Rapid account: Garrylachman
garrylachman Commented לפני 8 שנים

<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 שנים

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/

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות