Example #1
0
		/// <summary>
		/// This is a async execution of \account\update_profile_image rest call. 
		/// It returns JsonResponse&lt;AccountUpdateProfileImageResponse&gt;
		/// Here comes request Comments:
		///<para>更新用户头像。 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/account/update_profile_image.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para>注意事项:</para>
		///<para>	采用multipart/form-data编码方式提交,可以参考: Form-based File Upload in HTML</para>
		///<para></para>
		/// </summary>
		public async Task<JsonResponse<AccountUpdateProfileImageResponse>> ExecuteAccountUpdateProfileImageAsync (
			AccountUpdateProfileImageRequest request,
			CancellationToken cancellationToken =default(CancellationToken),
			IProgress<ProgressReport> progress=null 
			)			
		{
			return await _executeAccountUpdateProfileImageMethod.GetResponseAsync(request, cancellationToken, progress);
		}
Example #2
0
		/// <summary>
		/// This is a sync execution of \account\update_profile_image rest call. 
		/// It returns JsonResponse&lt;AccountUpdateProfileImageResponse&gt;
		/// Here comes request Comments:
		///<para>更新用户头像。 </para>
		///<para>URL:</para>
		///<para>	http://api.t.sina.com.cn/account/update_profile_image.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para>注意事项:</para>
		///<para>	采用multipart/form-data编码方式提交,可以参考: Form-based File Upload in HTML</para>
		///<para></para>
		/// </summary>
		public JsonResponse<AccountUpdateProfileImageResponse> ExecuteAccountUpdateProfileImage(AccountUpdateProfileImageRequest request)
		{
			return ExecuteAccountUpdateProfileImageAsync(request).Result;
		}
Example #3
0
		/// <summary>
		/// This is a sync request of \account\update_profile_image 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/update_profile_image.(json|xml)</para>
		///<para>支持格式:</para>
		///<para>	XML/JSON</para>
		///<para>HTTP请求方式:</para>
		///<para>	POST</para>
		///<para>是否需要登录:</para>
		///<para>	true  关于授权机制,参见授权机制声明</para>
		///<para>请求数限制:</para>
		///<para>	true  关于请求数限制,参见接口访问权限说明</para>
		///<para>注意事项:</para>
		///<para>	采用multipart/form-data编码方式提交,可以参考: Form-based File Upload in HTML</para>
		///<para></para>
		/// </summary>
		public JsonResponse<Stream> RequestAccountUpdateProfileImage(AccountUpdateProfileImageRequest request)
		{
			return RequestAccountUpdateProfileImageAsync(request).Result;
		}