Hi there,
I have a mashape api with wordsapi,
In localhost, it works great;
The problem is that when I try to use the code in production environment I get this response from any request API:
object(Unirest\Response)#2 (4) {
[โcodeโ]=>
int(401)
[โraw_bodyโ]=>
bool(false)
[โbodyโ]=>
NULL
[โheadersโ]=>
array(1) {
["{โmessageโ"]=>
string(123) โโMissing Mashape application key. Go to http://docs.mashape.com/api-keys to learn how to get your API application key.โ}โ
}
}`
It doesnโt matter if I use the testing or the production keyโฆ
Can you give me a hint?
I am using php and this is my code:
`raw_body = json_decode($response->raw_body);
Best regards!
thansk in advance
Join in the discussion - add comment below:
Since in local environment the request works, i can only assume itโs setted up correctlyโฆ
Hi,
There shouldnโt be any difference where you call the API from. Make sure that the mashape key is being loaded correctly. If it is, you may want to reach out to Mashape, since it looks like the request is being blocked by them and never even making it to Words API.