Visual Crossing Weather

FREEMIUM
By Visual Crossing Corporation | Updated hace 16 días | Weather
Popularity

9.9 / 10

Latency

148ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Timeline Weather APIが使いたいです

Rapid account: Taisuke Salty
taisuke-salty
hace 2 años

Timeline Weather APIを使うため、リクエストするURLの"forecast"や"history"を"timeline"に変えてもうまくいきません。
どうしたら良いでしょうか。

Rapid account: Taisuke Salty
taisuke-salty Commented hace 2 años

実際のコードは以下のとおりです。
’’‘
import axios from “axios”;
const options = {
method: ‘GET’,
url: ‘https://visual-crossing-weather.p.rapidapi.com/timeline’,
params: {
Date1: ‘2021-11-04’,
location: ‘YOKOHAMA,JA’,
unitGroup: ‘metric’,
contentType: ‘json’,
},
headers: {
‘x-rapidapi-key’: MY_API_KEY,
‘x-rapidapi-host’: ‘visual-crossing-weather.p.rapidapi.com
}
};
’’’

Join in the discussion - add comment below:

Login / Signup to post new comments