Template:彩云天气 API/授权与认证

From Caiyun Wiki
Revision as of 06:15, 23 October 2018 by Mingli (talk | contribs) (认证)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

授权

请先至彩云开放平台注册,注册后可以获得 token 。

认证

把您的 token 拼到 API 请求的 URL 中,如

https://api.caiyunapp.com/v2/TAkhjf8d1nlSlspN/121.6544,25.1552/realtime.json

其中 TAkhjf8d1nlSlspN 就是一个测试 token 。请注意不要把你的 token 告诉任何其他人。