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

From CaiyunWiki
Jump to: navigation, search
(API call examples)
(Scenarios of planning software)
Line 16: Line 16:
 
=== Scenarios of planning software ===
 
=== Scenarios of planning software ===
  
* Short term:  
+
* Short term: 24 hour hourly forecast
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/-74.0060,40.7128/weather.json?lang=en_US&unit=imperial</code>
+
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/-74.0060,40.7128/weather.json?lang=en_US&unit=imperial&granu=hourly&hourlysteps=24</code>
* Long term:
+
* Long term: 10 days daily forecast
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/139.7690,35.6804/weather.json?lang=ja</code>
+
** <code>https://api.caiyunapp.com/v2.5/S45Fnpxcwyq0QT4b/139.7690,35.6804/weather.json?lang=ja&granu=daily&dailysteps=10</code>
  
 
=== Scenarios of scientific instrument ===
 
=== Scenarios of scientific instrument ===

Revision as of 07:40, 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 call examples

Scenarios of weather apps

Scenarios of planning software

Scenarios of scientific instrument

Scenarios of Real-time cases

Parameters

Return values

Errors

Other links