예제 #1
0
파일: WeiboClient.cs 프로젝트: JDCB/JDCB
		/// <summary>
		/// This is a async execution of \account\get_privacy rest call. 
		/// It returns JsonResponse&lt;AccountGetPrivacyResponse&gt;
		/// Here comes request Comments:
		///<para>获取隐私信息设置情况 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/account/get_privacy.(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<AccountGetPrivacyResponse>> ExecuteAccountGetPrivacyAsync (
			AccountGetPrivacyRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _executeAccountGetPrivacyMethod.GetResponseAsync(request, cancellationToken, progress);
		}
예제 #2
0
파일: WeiboClient.cs 프로젝트: JDCB/JDCB
		/// <summary>
		/// This is a sync execution of \account\get_privacy rest call. 
		/// It returns JsonResponse&lt;AccountGetPrivacyResponse&gt;
		/// Here comes request Comments:
		///<para>获取隐私信息设置情况 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/account/get_privacy.(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<AccountGetPrivacyResponse> ExecuteAccountGetPrivacy(AccountGetPrivacyRequest request)
		{
			return ExecuteAccountGetPrivacyAsync(request).Result;
		}
예제 #3
0
파일: WeiboClient.cs 프로젝트: JDCB/JDCB
		/// <summary>
		/// This is a sync request of \account\get_privacy rest call.
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>获取隐私信息设置情况 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/account/get_privacy.(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> RequestAccountGetPrivacy(AccountGetPrivacyRequest request)
		{
			return RequestAccountGetPrivacyAsync(request).Result;
		}