潮汐接口

From Caiyun Wiki
Revision as of 08:15, 22 December 2021 by Ringsaturn (talk | contribs) (Created page with "==授权与认证 == 请先至彩云开放平台[https://dashboard.caiyunapp.com/user/sign_up/ 注册],注册后可以获得 token 。 使用本接口,开发者token需...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

授权与认证

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

使用本接口,开发者token需要额外开通权限,请联系商务:api@caiyunapp.com

API 地址

api.caiyunapp.com/v1/tide?token=TOKEN&days=2

参数说明

  • days: int, 最大 2 天

返回结构

 1 {
 2   "status": "ok",
 3   "result": [
 4     {
 5       "id": "港口 ID",
 6       "name": "港口名称",
 7       "coordinates": [
 8         124.15667,
 9         39.81667
10       ],
11       "tide": [
12         675,
13         // ...
14         412
15       ]
16     }
17   ]
18 }