public void TestStopInstance() { string accessKeyId = "your jdcloud ak"; string secretAccessKey = "you jdcloud sk"; CredentialsProvider credentialsProvider = new StaticCredentialsProvider(accessKeyId, secretAccessKey); HttpRequestConfig httpRequestConfig = new HttpRequestConfig(); DatastarClient dataClient = new DatastarClient.DefaultBuilder() .CredentialsProvider(credentialsProvider) .HttpRequestConfig(new HttpRequestConfig(Protocol.HTTPS, 10)) .Build(); //3. 设置请求参数 //GetLargeScreenDataRequest GetLargeScreenDataRequest lsRequest = new GetLargeScreenDataRequest(); lsRequest.RegionId = "cn-south-1"; lsRequest.EndDate = "2019-02-18"; lsRequest.StartDate = "2019-02-10"; lsRequest.Version = "v1"; lsRequest.Region = "福清县"; lsRequest.Industry = "食品"; lsRequest.FirstIndex = "食品"; lsRequest.SecondIndex = "价格指数"; //4. 执行请求 var response1 = dataClient.GetLargeScreenData(lsRequest).Result; Console.WriteLine(JsonConvert.SerializeObject(response1)); }
/// <summary> /// 根据区域、行业、一级指标、二级指标、起始时间等条件查询数据 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <GetLargeScreenDataResponse> GetLargeScreenData(GetLargeScreenDataRequest request) { return(await new GetLargeScreenDataExecutor().Client(this).Execute <GetLargeScreenDataResponse, GetLargeScreenDataResult, GetLargeScreenDataRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 根据区域、行业、一级指标、二级指标、起始时间等条件查询数据 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public GetLargeScreenDataResponse GetLargeScreenData(GetLargeScreenDataRequest request) { return(new GetLargeScreenDataExecutor().Client(this).Execute <GetLargeScreenDataResponse, GetLargeScreenDataResult, GetLargeScreenDataRequest>(request)); }