Esempio n. 1
0
		/// <summary>
		/// This is a async execution of \account rest call. 
		/// It returns JsonResponse&lt;AccountResponse&gt;
		/// Here comes request Comments:
		///<para>      清除已验证用户的session,退出登录,并将cookie设为null。主要用于widget等web应用场合。 </para>
		///<para>                                                                                       </para>
		///<para>URL                                                                                    </para>
		///<para>	http://api.t.sina.com.cn/account/end_session.(json|xml)                              </para>
		///<para>                                                                                       </para>
		///<para>HTTP请求方式                                                                           </para>
		///<para>	POST                                                                                 </para>
		///<para>                                                                                       </para>
		///<para>是否需要登录                                                                            </para>
		///<para>	true                                                                                 </para>
		///<para>关于授权机制,参见授权机制声明                                                           </para>
		///<para>                                                                                       </para>
		///<para>请求数限制                                                                              </para>
		///<para>	true                                                                                 </para>
		///<para>关于请求数限制,参见接口访问权限说明                                                     </para>
		///<para>
		///      
		/// </summary>
		public async Task<JsonResponse<AccountResponse>> ExecuteAccountAsync (
			AccountRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _executeAccountMethod.GetResponseAsync(request, cancellationToken, progress);
		}
Esempio n. 2
0
		/// <summary>
		/// This is a sync execution of \account rest call. 
		/// It returns JsonResponse&lt;AccountResponse&gt;
		/// Here comes request Comments:
		///<para>      清除已验证用户的session,退出登录,并将cookie设为null。主要用于widget等web应用场合。 </para>
		///<para>                                                                                       </para>
		///<para>URL                                                                                    </para>
		///<para>	http://api.t.sina.com.cn/account/end_session.(json|xml)                              </para>
		///<para>                                                                                       </para>
		///<para>HTTP请求方式                                                                           </para>
		///<para>	POST                                                                                 </para>
		///<para>                                                                                       </para>
		///<para>是否需要登录                                                                            </para>
		///<para>	true                                                                                 </para>
		///<para>关于授权机制,参见授权机制声明                                                           </para>
		///<para>                                                                                       </para>
		///<para>请求数限制                                                                              </para>
		///<para>	true                                                                                 </para>
		///<para>关于请求数限制,参见接口访问权限说明                                                     </para>
		///<para>
		///      
		/// </summary>
		public JsonResponse<AccountResponse> ExecuteAccount(AccountRequest request)
		{
			return ExecuteAccountAsync(request).Result;
		}
Esempio n. 3
0
		/// <summary>
		/// This is a sync request of \account rest call.
		///It returns JsonResponse&lt;Stream&gt;
		/// Here comes request Comments:
		///<para>      清除已验证用户的session,退出登录,并将cookie设为null。主要用于widget等web应用场合。 </para>
		///<para>                                                                                       </para>
		///<para>URL                                                                                    </para>
		///<para>	http://api.t.sina.com.cn/account/end_session.(json|xml)                              </para>
		///<para>                                                                                       </para>
		///<para>HTTP请求方式                                                                           </para>
		///<para>	POST                                                                                 </para>
		///<para>                                                                                       </para>
		///<para>是否需要登录                                                                            </para>
		///<para>	true                                                                                 </para>
		///<para>关于授权机制,参见授权机制声明                                                           </para>
		///<para>                                                                                       </para>
		///<para>请求数限制                                                                              </para>
		///<para>	true                                                                                 </para>
		///<para>关于请求数限制,参见接口访问权限说明                                                     </para>
		///<para>
		///      
		/// </summary>
		public JsonResponse<Stream> RequestAccount(AccountRequest request)
		{
			return RequestAccountAsync(request).Result;
		}