接口名称 上传头像     access_token
地址 https://api.cnlive.com/open/api2/CnliveMobile/json/avatarUpdate
method post
返回数据 json

/* Title: 2.2 上传头像 Sort: 22 */

URL: http://api.cnlive.com/open/api/CnliveMobile/json/avatarUpdate?sp_id=xxx&...


请求方式: POST


返回格式: JSON


请求参数说明:

参数 必选 类型 说明
sp_id true string 服务提供商ID
uid true string 用户ID
avatar true blob 头像文件
plat true string 客户端平台[i:IOS客户端,a:Android客户端]
sign true string 签名

返回格式说明:

{
 errorCode:"0",
 errorMsg:"成功"
}
{
 errorCode:"xxx", //错误代码(非0)
 errorMsg:"失败" //错误信息
}