Documentation ¶
Index ¶
- type TaobaoMtopUploadTokenGetAPIResponse
- type TaobaoMtopUploadTokenGetRequest
- func (r TaobaoMtopUploadTokenGetRequest) GetApiMethodName() string
- func (r TaobaoMtopUploadTokenGetRequest) GetApiParams() url.Values
- func (r TaobaoMtopUploadTokenGetRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
- func (r *TaobaoMtopUploadTokenGetRequest) SetParamUploadTokenRequest(paramUploadTokenRequest *UploadTokenRequestV) error
- type TaobaoMtopUploadTokenGetResponse
- type UploadTokenRequestV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaobaoMtopUploadTokenGetAPIResponse ¶
type TaobaoMtopUploadTokenGetAPIResponse struct { model.CommonResponse TaobaoMtopUploadTokenGetResponse }
获取文件上传授权 API返回值 taobao.mtop.upload.token.get
获取mtop文件上传授权
type TaobaoMtopUploadTokenGetRequest ¶
type TaobaoMtopUploadTokenGetRequest struct { model.Params // contains filtered or unexported fields }
获取文件上传授权 API请求 taobao.mtop.upload.token.get
获取mtop文件上传授权
func NewTaobaoMtopUploadTokenGetRequest ¶
func NewTaobaoMtopUploadTokenGetRequest() *TaobaoMtopUploadTokenGetRequest
初始化TaobaoMtopUploadTokenGetRequest对象
func (TaobaoMtopUploadTokenGetRequest) GetApiMethodName ¶
func (r TaobaoMtopUploadTokenGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoMtopUploadTokenGetRequest) GetApiParams ¶
func (r TaobaoMtopUploadTokenGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoMtopUploadTokenGetRequest) GetParamUploadTokenRequest ¶
func (r TaobaoMtopUploadTokenGetRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
ParamUploadTokenRequest Getter
func (*TaobaoMtopUploadTokenGetRequest) SetParamUploadTokenRequest ¶
func (r *TaobaoMtopUploadTokenGetRequest) SetParamUploadTokenRequest(paramUploadTokenRequest *UploadTokenRequestV) error
ParamUploadTokenRequest Setter 系统自动生成
type TaobaoMtopUploadTokenGetResponse ¶
type TaobaoMtopUploadTokenGetResponse struct { XMLName xml.Name `xml:"mtop_upload_token_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // msg Message string `json:"message,omitempty" xml:"message,omitempty"` // code Code string `json:"code,omitempty" xml:"code,omitempty"` // 单次上传文件块最大大小,单位 byte MaxBodyLength int64 `json:"max_body_length,omitempty" xml:"max_body_length,omitempty"` // 单个文件重试上传次数 MaxRetryTimes int64 `json:"max_retry_times,omitempty" xml:"max_retry_times,omitempty"` // 本次指定的上传文件服务器地址 ServerAddress string `json:"server_address,omitempty" xml:"server_address,omitempty"` // token失效时间点 Timeout int64 `json:"timeout,omitempty" xml:"timeout,omitempty"` // 颁发的上传令牌 Token string `json:"token,omitempty" xml:"token,omitempty"` }
获取文件上传授权 成功返回结果
type UploadTokenRequestV ¶
type UploadTokenRequestV struct { // 文件大小,单位byte FileSize int64 `json:"file_size,omitempty" xml:"file_size,omitempty"` // 自定义数据 PrivateData string `json:"private_data,omitempty" xml:"private_data,omitempty"` // 上传类型:resumable 或 normal UploadType string `json:"upload_type,omitempty" xml:"upload_type,omitempty"` // 文件内容的CRC32校验和 Crc int64 `json:"crc,omitempty" xml:"crc,omitempty"` // 客户端网络类型 wifi 或 2g 或 3g 或 cdma 或 gprs ClientNetType string `json:"client_net_type,omitempty" xml:"client_net_type,omitempty"` // 文件名 FileName string `json:"file_name,omitempty" xml:"file_name,omitempty"` // 多媒体中心分配的业务码, mtopupload或其他 BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` }
UploadTokenRequestV
Click to show internal directories.
Click to hide internal directories.