Hi there!
I’m using your app, but when I use the request, I’m getting a 401 error (not authorized). I use the production key (I also tested the test environment with the same error) but I can’t get a successful response.
And this is the response:
Unirest\Response Object ( [code] => 401 [raw_body] => [body] => [headers] => Array ( [{“message”] => “Missing Mashape application key. Go to http://docs.mashape.com/api-keys to learn how to get your API application key.”} ) )
But I’m sending the application key correctly (in your example)
Do you know what can be happening?
Thanks for your help!
Join in the discussion - add comment below:
Closing this as the issue was resolved.
Hello,
Do you also get a 401 error when trying the Curl request example?
For info, it’s also possible to authenticate using URL query parameters as mentioned here : http://docs.mashape.com/auth-settings#query-parameters
In case this authentication method works for you, you can simply call the following URL : https://telize-v1.p.mashape.com/geoip?mashape-key=YourMashapeSecretkey
Regards.