Visual Crossing Weather

免费增值
通过 Visual Crossing Corporation | 已更新 hace 9 días | Weather
人气

9.9 / 10

延迟

137ms

服务等级

100%

Health Check

N/A

返回所有讨论

Hello

Rapid account: Vit Nif
VitNif
hace 4 años

I have a problem, via postman it works, but from c# code doesn’t, could you help me ?

using RestSharp;
using System.Net;

namespace Historical_sandbox
{
class Program
{

    static void Main(string[] args)
    {
        var client = new RestClient("https://visual-crossing-weather.p.rapidapi.com/history?dayStartTime=00:00:00&contentType=json&dayEndTime=00:00:00&shortColumnNames=true&startDateTime=2019-01-01T00:00:00&aggregateHours=24&location=Washington%252CDC%252CUSA&endDateTime=2019-01-03T00:00:00&unitGroup=metric");
        var request = new RestRequest(Method.GET);
        request.AddHeader("x-rapidapi-host", "visual-crossing-weather.p.rapidapi.com");
        request.AddHeader("x-rapidapi-key", "*********************************************");
        IRestResponse response = client.Execute(request);
        if (response.StatusCode==HttpStatusCode.OK)
        {

        }
    }
}

}

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论