/// <summary> /// This is a async request of \statuses\counts rest call. ///It returns JsonResponse<Stream> /// Here comes request Comments: ///<para>批量获取n条微博消息的评论数和转发数。一次请求最多可以获取20条微博消息的评论数和转发数 </para> ///<para>URL:</para> ///<para> http://api.t.sina.com.cn/statuses/counts.(json|xml)</para> ///<para>支持格式:</para> ///<para> XML/JSON</para> ///<para>HTTP请求方式:</para> ///<para> GET</para> ///<para>是否需要登录:</para> ///<para> true 关于授权机制,参见授权机制声明</para> ///<para>请求数限制:</para> ///<para> true 关于请求数限制,参见接口访问权限说明</para> ///<para></para> /// </summary> public async Task<JsonResponse<Stream>> RequestStatusesCountsAsync ( StatusesCountsRequest request, CancellationToken cancellationToken =default(CancellationToken), IProgress<ProgressReport> progress=null ) { return await _requestStatusesCountsMethod.GetResponseAsync(request, cancellationToken, progress); }
/// <summary> /// This is a sync request of \statuses\counts rest call. ///It returns JsonResponse<Stream> /// Here comes request Comments: ///<para>批量获取n条微博消息的评论数和转发数。一次请求最多可以获取20条微博消息的评论数和转发数 </para> ///<para>URL:</para> ///<para> http://api.t.sina.com.cn/statuses/counts.(json|xml)</para> ///<para>支持格式:</para> ///<para> XML/JSON</para> ///<para>HTTP请求方式:</para> ///<para> GET</para> ///<para>是否需要登录:</para> ///<para> true 关于授权机制,参见授权机制声明</para> ///<para>请求数限制:</para> ///<para> true 关于请求数限制,参见接口访问权限说明</para> ///<para></para> /// </summary> public JsonResponse<Stream> RequestStatusesCounts(StatusesCountsRequest request) { return RequestStatusesCountsAsync(request).Result; }
/// <summary> /// This is a sync execution of \statuses\counts rest call. /// It returns JsonResponse<StatusesCountsResponse> /// Here comes request Comments: ///<para>批量获取n条微博消息的评论数和转发数。一次请求最多可以获取20条微博消息的评论数和转发数 </para> ///<para>URL:</para> ///<para> http://api.t.sina.com.cn/statuses/counts.(json|xml)</para> ///<para>支持格式:</para> ///<para> XML/JSON</para> ///<para>HTTP请求方式:</para> ///<para> GET</para> ///<para>是否需要登录:</para> ///<para> true 关于授权机制,参见授权机制声明</para> ///<para>请求数限制:</para> ///<para> true 关于请求数限制,参见接口访问权限说明</para> ///<para></para> /// </summary> public JsonResponse<StatusesCountsResponse> ExecuteStatusesCounts(StatusesCountsRequest request) { return ExecuteStatusesCountsAsync(request).Result; }