Beispiel #1
0
		/// <summary>
		/// This is a async request of \friendships\exists rest call. 
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>查看用户A是否关注了用户B。如果用户A关注了用户B,则返回true,否则返回false。 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/friendships/exists.(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>> RequestFriendshipsExistsAsync (
			FriendshipsExistsRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _requestFriendshipsExistsMethod.GetResponseAsync(request, cancellationToken, progress);
		}
Beispiel #2
0
		/// <summary>
		/// This is a sync request of \friendships\exists rest call.
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>查看用户A是否关注了用户B。如果用户A关注了用户B,则返回true,否则返回false。 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/friendships/exists.(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> RequestFriendshipsExists(FriendshipsExistsRequest request)
		{
			return RequestFriendshipsExistsAsync(request).Result;
		}
Beispiel #3
0
		/// <summary>
		/// This is a sync execution of \friendships\exists rest call. 
		/// It returns JsonResponse&lt;FriendshipsExistsResponse&gt;
		/// Here comes request Comments:
		///<para>查看用户A是否关注了用户B。如果用户A关注了用户B,则返回true,否则返回false。 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/friendships/exists.(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<FriendshipsExistsResponse> ExecuteFriendshipsExists(FriendshipsExistsRequest request)
		{
			return ExecuteFriendshipsExistsAsync(request).Result;
		}