/// <summary> /// This is a async execution of \account\end_session rest call. /// It returns JsonResponse<AccountEndSessionResponse> /// 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<AccountEndSessionResponse>> ExecuteAccountEndSessionAsync ( AccountEndSessionRequest request, CancellationToken cancellationToken =default(CancellationToken), IProgress<ProgressReport> progress=null ) { return await _executeAccountEndSessionMethod.GetResponseAsync(request, cancellationToken, progress); }
/// <summary> /// This is a sync execution of \account\end_session rest call. /// It returns JsonResponse<AccountEndSessionResponse> /// 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<AccountEndSessionResponse> ExecuteAccountEndSession(AccountEndSessionRequest request) { return ExecuteAccountEndSessionAsync(request).Result; }
/// <summary> /// This is a sync request of \account\end_session rest call. ///It returns JsonResponse<Stream> /// 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> RequestAccountEndSession(AccountEndSessionRequest request) { return RequestAccountEndSessionAsync(request).Result; }