简体   繁体   English

Spoonacular 无效的 api 密钥

[英]Spoonacular invalid api key

I am trying to hit an endpoint in postman.我试图在邮递员中找到一个端点。 I am using a particular API which is given by Spoonacular.我正在使用 Spoonacular 提供的特定 API。 When I hit the HTTP GET request i get a 401 unauthorized response.当我点击 HTTP GET 请求时,我收到 401 未经授权的响应。 I am not sure why I get this response.我不知道为什么我得到这个回应。 The response message is ->响应消息是 ->

   {
    "message": "Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info."
}

I know that my API is not invalid as I am able to get a status 200ok for other requests This is my request.我知道我的 API 不是无效的,因为我可以获得其他请求的状态 200ok 这是我的请求。 I believe that I have formatted it correclty -> https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/mealplans/generate?timeFrame=day&apiKey=MYAPIKEY我相信我已经正确格式化了 -> https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/mealplans/generate?timeFrame=day&apiKey=MYAPIKEY

Does anyone know how to solve this.有谁知道如何解决这个问题。 Thanks in advance提前致谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM