Accuweather API键未经授权

发布于 2025-01-29 04:34:27 字数 346 浏览 1 评论 0原文

我从

当我与此格式一起使用时}?apikey = {您的键} {& lanking = {lankagic code}}} {& details = {true或fals或false}}} {& getPhotos = true或false = true或false} , 我得到此错误:

“ {”代码“:”未经授权的“,“消息”:“ API授权失败”,“参考”:“/currentConditions/v1/335315.json?apikey?apikey =& defots = true = true = true = true = true” }“

我做错了什么?

I got an API key from https://developer.accuweather.com/ and I want to use it to get a currentlocation info to use in my smart contract.

When I use it with this format https://{{api} or {{apidev}}.accuweather.com/currentconditions/{version}/{locationKey}{.{format}}?apikey={your key}{&language={language code}}{&details={true or false}}{&getphotos=true or false},
I get this error:

"{"Code":"Unauthorized","Message":"Api Authorization failed","Reference":"/currentconditions/v1/335315.json?apikey=&details=true"}"

What am I doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帝王念 2025-02-05 04:34:27

您需要使用参数创建一个新应用
“全球”,而不是有问题的“国家”,“这是全球或国家特定用途吗? *”

You need to create a new app with parameter
"Worldwide", not a "Country" in question "Is this Worldwide or Country specific use? *"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文