Kitten Placeholder

免费增值
通过 nijikokun | 已更新 a year ago | Reward
人气

0.1 / 10

延迟

414ms

服务等级

0%

返回所有讨论

Missing Mashape key

D
Delooo
5 years ago

When I try to connect it says {“message”:“Missing Mashape application key. Go to http://docs.mashape.com/api-keys to learn how to get your API application key.”}

even if my code is right (I think);
args=array("XMashapeKey"=>"MYKEYHERE","Accept"=>"application/json");args = array( "X-Mashape-Key" => "MYKEYHERE", "Accept" => "application/json" ); r = new HttpRequest(“get”, “https://nijikokun-random-cats.p.mashape.com/random”, args);args); rr = $r->getResponse();

I use a library for httprequest which I am sure it works perfectly.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:5 - 投票:1