IP Info

ÜCRETSİZ
Taraf NeutrinoAPI.com | Güncelleyen a month ago | Location
Popülerlik

9.4 / 10

Gecikme

76ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

Missing or Invalid Parameter

Rapid account: Kmanu
kmanu
10 years ago

I am using this API in php and getting the following error

[api-parameter-name] => ip
[api-error] => 1
[api-parameter-type] => string
[api-parameter-required] => 1
[api-error-msg] => MISSING OR INVALID PARAMETER

Thanks

Rapid account: Neutrinoapi
neutrinoapi Commented 10 years ago

Hi kmanu,

I believe this happens with the PHP Unirest class if you do not encode the data first,
Please try wrap your API parameters using http_build_query() like this:

http_build_query(array(“ip” => “162.209.106.137”, “reverse-lookup” => “true”))

Let us know if you still have any issues, we are also going to check with the Mashape developers if this should be something that Unirest can do automatically (as the example given for PHP Unirest does not mention this…)

Cheers!

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun