Example #1
0
		/// <summary>
		/// This is a async request of \short_url\share\counts rest call. 
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>取得一个短链接在微博上的微博分享数(包含原创和转发的微博) </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/short_url/share/counts.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	GET</para>
		///<para>是否需要登录:</para>
		///<para>	false  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public async Task<JsonResponse<Stream>> RequestShortUrlShareCountsAsync (
			ShortUrlShareCountsRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _requestShortUrlShareCountsMethod.GetResponseAsync(request, cancellationToken, progress);
		}
Example #2
0
		/// <summary>
		/// This is a sync request of \short_url\share\counts rest call.
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>取得一个短链接在微博上的微博分享数(包含原创和转发的微博) </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/short_url/share/counts.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	GET</para>
		///<para>是否需要登录:</para>
		///<para>	false  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public JsonResponse<Stream> RequestShortUrlShareCounts(ShortUrlShareCountsRequest request)
		{
			return RequestShortUrlShareCountsAsync(request).Result;
		}
Example #3
0
		/// <summary>
		/// This is a sync execution of \short_url\share\counts rest call. 
		/// It returns JsonResponse&lt;ShortUrlShareCountsResponse&gt;
		/// Here comes request Comments:
		///<para>取得一个短链接在微博上的微博分享数(包含原创和转发的微博) </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/short_url/share/counts.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	GET</para>
		///<para>是否需要登录:</para>
		///<para>	false  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para></para>
		/// </summary>
		public JsonResponse<ShortUrlShareCountsResponse> ExecuteShortUrlShareCounts(ShortUrlShareCountsRequest request)
		{
			return ExecuteShortUrlShareCountsAsync(request).Result;
		}