Difference between revisions of "General weather interface/v2.5"

From CaiyunWiki
Jump to: navigation, search
(API call examples)
m (API call by examples)
Line 5: Line 5:
 
After signing up at '''[https://dashboard.caiyunapp.com/user/sign_up/ the dahsboard]''', you will get your access token. In below sections, we will use a temporary token for demo purpose: <code>S45Fnpxcwyq0QT4b</code>. In production or development, you should use your own.
 
After signing up at '''[https://dashboard.caiyunapp.com/user/sign_up/ the dahsboard]''', you will get your access token. In below sections, we will use a temporary token for demo purpose: <code>S45Fnpxcwyq0QT4b</code>. In production or development, you should use your own.
  
== API call by examples ==
+
== API calls by examples ==
  
 
=== Scenarios of weather apps ===
 
=== Scenarios of weather apps ===

Revision as of 08:10, 3 April 2020

Version of this article: v2.5,current stable version: v2.5,historical veriosns: v2.4

Authentication

After signing up at the dahsboard, you will get your access token. In below sections, we will use a temporary token for demo purpose: S45Fnpxcwyq0QT4b. In production or development, you should use your own.

API calls by examples

Scenarios of weather apps

Scenarios of planning software

Scenarios of scientific instrument

Scenarios of real-time cases

Scenarios of webapps

Parameters

  • lang: optional, the language, default value is zh_CN, you can set any one of zh_CN, zh_TW, en_US, en_GB, ja
  • unit: optional, the unit system, default value is metric, you can set any one of metric, imperial, SI
  • granu: optional, the temporal granularity, default value is realtime,minutely,hourly,daily, you can set any one or combinations of realtime, minutely, hourly, daily
  • hourlysteps: optional, how many hours will be present in hourly forecast, default value is 48 hours and maximal value is 360 hours
  • dailysteps: optional, how many days will be present in daily forecast, default value is 5 days and maximal value is 15 days

Return values

Errors

Other links