Documentation ¶
Overview ¶
解决淘宝各种文件上传、管理维护、使用的统一解决方案平台 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
Index ¶
- Constants
- type AndroidVlowUrl
- type Picture
- type PictureCategory
- type PictureCategoryAddRequest
- type PictureCategoryAddResponse
- type PictureCategoryAddResponseResult
- type PictureCategoryGetRequest
- func (r *PictureCategoryGetRequest) GetResponse(accessToken string) (*PictureCategoryGetResponse, []byte, error)
- func (r *PictureCategoryGetRequest) SetModifiedTime(value string)
- func (r *PictureCategoryGetRequest) SetParentId(value string)
- func (r *PictureCategoryGetRequest) SetPictureCategoryId(value string)
- func (r *PictureCategoryGetRequest) SetPictureCategoryName(value string)
- func (r *PictureCategoryGetRequest) SetType(value string)
- type PictureCategoryGetResponse
- type PictureCategoryGetResponseResult
- type PictureCategoryUpdateRequest
- func (r *PictureCategoryUpdateRequest) GetResponse(accessToken string) (*PictureCategoryUpdateResponse, []byte, error)
- func (r *PictureCategoryUpdateRequest) SetCategoryId(value string)
- func (r *PictureCategoryUpdateRequest) SetCategoryName(value string)
- func (r *PictureCategoryUpdateRequest) SetParentId(value string)
- type PictureCategoryUpdateResponse
- type PictureCategoryUpdateResponseResult
- type PictureDeleteRequest
- type PictureDeleteResponse
- type PictureDeleteResponseResult
- type PictureGetRequest
- func (r *PictureGetRequest) GetResponse(accessToken string) (*PictureGetResponse, []byte, error)
- func (r *PictureGetRequest) SetDeleted(value string)
- func (r *PictureGetRequest) SetEndDate(value string)
- func (r *PictureGetRequest) SetModifiedTime(value string)
- func (r *PictureGetRequest) SetOrderBy(value string)
- func (r *PictureGetRequest) SetPageNo(value string)
- func (r *PictureGetRequest) SetPageSize(value string)
- func (r *PictureGetRequest) SetPictureCategoryId(value string)
- func (r *PictureGetRequest) SetPictureId(value string)
- func (r *PictureGetRequest) SetStartDate(value string)
- func (r *PictureGetRequest) SetTitle(value string)
- type PictureGetResponse
- type PictureGetResponseResult
- type PictureIsreferencedGetRequest
- type PictureIsreferencedGetResponse
- type PictureIsreferencedGetResponseResult
- type PictureReplaceRequest
- type PictureReplaceResponse
- type PictureReplaceResponseResult
- type PictureUpdateRequest
- type PictureUpdateResponse
- type PictureUpdateResponseResult
- type PictureUploadRequest
- func (r *PictureUploadRequest) GetResponse(accessToken string) (*PictureUploadResponse, []byte, error)
- func (r *PictureUploadRequest) SetImageInputTitle(value string)
- func (r *PictureUploadRequest) SetImg(value string)
- func (r *PictureUploadRequest) SetPictureCategoryId(value string)
- func (r *PictureUploadRequest) SetTitle(value string)
- type PictureUploadResponse
- type PictureUploadResponseResult
- type PictureUserinfoGetRequest
- type PictureUserinfoGetResponse
- type PictureUserinfoGetResponseResult
- type TOPPaginator
- type TOPSearchResult
- type UserInfo
- type VideoAddRequest
- func (r *VideoAddRequest) GetResponse(accessToken string) (*VideoAddResponse, []byte, error)
- func (r *VideoAddRequest) SetCoverUrl(value string)
- func (r *VideoAddRequest) SetDescription(value string)
- func (r *VideoAddRequest) SetTags(value string)
- func (r *VideoAddRequest) SetTitle(value string)
- func (r *VideoAddRequest) SetUploadId(value string)
- func (r *VideoAddRequest) SetUploaderId(value string)
- func (r *VideoAddRequest) SetVideoAppKey(value string)
- type VideoAddResponse
- type VideoAddResponseResult
- type VideoItem
- type VideoPlayInfo
- type VideoUpdateRequest
- func (r *VideoUpdateRequest) GetResponse(accessToken string) (*VideoUpdateResponse, []byte, error)
- func (r *VideoUpdateRequest) SetCoverUrl(value string)
- func (r *VideoUpdateRequest) SetDescription(value string)
- func (r *VideoUpdateRequest) SetTags(value string)
- func (r *VideoUpdateRequest) SetTitle(value string)
- func (r *VideoUpdateRequest) SetVideoAppKey(value string)
- func (r *VideoUpdateRequest) SetVideoId(value string)
- type VideoUpdateResponse
- type VideoUpdateResponseResult
- type VideosSearchRequest
- func (r *VideosSearchRequest) GetResponse(accessToken string) (*VideosSearchResponse, []byte, error)
- func (r *VideosSearchRequest) SetCurrentPage(value string)
- func (r *VideosSearchRequest) SetFields(value string)
- func (r *VideosSearchRequest) SetKeywords(value string)
- func (r *VideosSearchRequest) SetPageSize(value string)
- func (r *VideosSearchRequest) SetStates(value string)
- func (r *VideosSearchRequest) SetTag(value string)
- func (r *VideosSearchRequest) SetTitle(value string)
- func (r *VideosSearchRequest) SetUploaderId(value string)
- func (r *VideosSearchRequest) SetVideoAppKey(value string)
- type VideosSearchResponse
- type VideosSearchResponseResult
Constants ¶
const VersionNo = "20130808"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndroidVlowUrl ¶
type AndroidVlowUrl struct { Hd string `json:"hd"` Ld string `json:"ld"` Sd string `json:"sd"` Ud string `json:"ud"` }
android phone和pad播放的mp4文件类。适用2.3版本的Android。
type Picture ¶
type Picture struct { Created string `json:"created"` Deleted string `json:"deleted"` Md5 string `json:"md5"` Modified string `json:"modified"` PictureCategoryId int `json:"picture_category_id"` PictureId int `json:"picture_id"` PicturePath string `json:"picture_path"` Pixel string `json:"pixel"` Referenced bool `json:"referenced"` Sizes int `json:"sizes"` Status string `json:"status"` Title string `json:"title"` Uid int `json:"uid"` }
图片
type PictureCategory ¶
type PictureCategory struct { Created string `json:"created"` Modified string `json:"modified"` ParentId int `json:"parent_id"` PictureCategoryId int `json:"picture_category_id"` PictureCategoryName string `json:"picture_category_name"` Position int `json:"position"` Type string `json:"type"` }
图片分类
type PictureCategoryAddRequest ¶
type PictureCategoryAddRequest struct {
open_taobao.TaobaoMethodRequest
}
同一卖家最多添加500个图片分类,图片分类名称长度最大为20个字符
func (*PictureCategoryAddRequest) GetResponse ¶
func (r *PictureCategoryAddRequest) GetResponse(accessToken string) (*PictureCategoryAddResponse, []byte, error)
func (*PictureCategoryAddRequest) SetParentId ¶
func (r *PictureCategoryAddRequest) SetParentId(value string)
图片分类的父分类,一级分类的parent_id为0,二级分类的则为其父分类的picture_category_id
func (*PictureCategoryAddRequest) SetPictureCategoryName ¶
func (r *PictureCategoryAddRequest) SetPictureCategoryName(value string)
图片分类名称,最大长度20字符,中英文都算一字符,不能为空
type PictureCategoryAddResponse ¶
type PictureCategoryAddResponse struct {
PictureCategory *PictureCategory `json:"picture_category"`
}
type PictureCategoryAddResponseResult ¶
type PictureCategoryAddResponseResult struct {
Response *PictureCategoryAddResponse `json:"picture_category_add_response"`
}
type PictureCategoryGetRequest ¶
type PictureCategoryGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取图片分类信息
func (*PictureCategoryGetRequest) GetResponse ¶
func (r *PictureCategoryGetRequest) GetResponse(accessToken string) (*PictureCategoryGetResponse, []byte, error)
func (*PictureCategoryGetRequest) SetModifiedTime ¶
func (r *PictureCategoryGetRequest) SetModifiedTime(value string)
图片分类的修改时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片分类。
func (*PictureCategoryGetRequest) SetParentId ¶
func (r *PictureCategoryGetRequest) SetParentId(value string)
取二级分类时设置为对应父分类id
取一级分类时父分类id设为0 取全部分类的时候不设或设为-1
func (*PictureCategoryGetRequest) SetPictureCategoryId ¶
func (r *PictureCategoryGetRequest) SetPictureCategoryId(value string)
图片分类ID
func (*PictureCategoryGetRequest) SetPictureCategoryName ¶
func (r *PictureCategoryGetRequest) SetPictureCategoryName(value string)
图片分类名,不支持模糊查询
func (*PictureCategoryGetRequest) SetType ¶
func (r *PictureCategoryGetRequest) SetType(value string)
分类类型,fixed代表店铺装修分类类别,auction代表宝贝分类类别,user-define代表用户自定义分类类别
type PictureCategoryGetResponse ¶
type PictureCategoryGetResponse struct {
PictureCategories []*PictureCategory `json:"picture_categories"`
}
type PictureCategoryGetResponseResult ¶
type PictureCategoryGetResponseResult struct {
Response *PictureCategoryGetResponse `json:"picture_category_get_response"`
}
type PictureCategoryUpdateRequest ¶
type PictureCategoryUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
更新图片分类的名字,或者更新图片分类的父分类(即分类移动)。只能移动2级分类到非2级分类,默认分类和1级分类不可移动。
func (*PictureCategoryUpdateRequest) GetResponse ¶
func (r *PictureCategoryUpdateRequest) GetResponse(accessToken string) (*PictureCategoryUpdateResponse, []byte, error)
func (*PictureCategoryUpdateRequest) SetCategoryId ¶
func (r *PictureCategoryUpdateRequest) SetCategoryId(value string)
要更新的图片分类的id
func (*PictureCategoryUpdateRequest) SetCategoryName ¶
func (r *PictureCategoryUpdateRequest) SetCategoryName(value string)
图片分类的新名字,最大长度20字符,不能为空
func (*PictureCategoryUpdateRequest) SetParentId ¶
func (r *PictureCategoryUpdateRequest) SetParentId(value string)
图片分类的新父分类id
type PictureCategoryUpdateResponse ¶
type PictureCategoryUpdateResponse struct {
Done bool `json:"done"`
}
type PictureCategoryUpdateResponseResult ¶
type PictureCategoryUpdateResponseResult struct {
Response *PictureCategoryUpdateResponse `json:"picture_category_update_response"`
}
type PictureDeleteRequest ¶
type PictureDeleteRequest struct {
open_taobao.TaobaoMethodRequest
}
删除图片空间图片
func (*PictureDeleteRequest) GetResponse ¶
func (r *PictureDeleteRequest) GetResponse(accessToken string) (*PictureDeleteResponse, []byte, error)
func (*PictureDeleteRequest) SetPictureIds ¶
func (r *PictureDeleteRequest) SetPictureIds(value string)
图片ID字符串,可以一个也可以一组,用英文逗号间隔,如450,120,155
type PictureDeleteResponse ¶
type PictureDeleteResponse struct {
Success bool `json:"success"`
}
type PictureDeleteResponseResult ¶
type PictureDeleteResponseResult struct {
Response *PictureDeleteResponse `json:"picture_delete_response"`
}
type PictureGetRequest ¶
type PictureGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取图片信息
func (*PictureGetRequest) GetResponse ¶
func (r *PictureGetRequest) GetResponse(accessToken string) (*PictureGetResponse, []byte, error)
func (*PictureGetRequest) SetDeleted ¶
func (r *PictureGetRequest) SetDeleted(value string)
是否删除,unfroze代表没有删除
func (*PictureGetRequest) SetEndDate ¶
func (r *PictureGetRequest) SetEndDate(value string)
查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss
func (*PictureGetRequest) SetModifiedTime ¶
func (r *PictureGetRequest) SetModifiedTime(value string)
图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。
func (*PictureGetRequest) SetOrderBy ¶
func (r *PictureGetRequest) SetOrderBy(value string)
图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc
func (*PictureGetRequest) SetPageNo ¶
func (r *PictureGetRequest) SetPageNo(value string)
页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1
func (*PictureGetRequest) SetPageSize ¶
func (r *PictureGetRequest) SetPageSize(value string)
每页条数.每页返回最多返回100条,默认值40
func (*PictureGetRequest) SetPictureCategoryId ¶
func (r *PictureGetRequest) SetPictureCategoryId(value string)
图片分类ID
func (*PictureGetRequest) SetPictureId ¶
func (r *PictureGetRequest) SetPictureId(value string)
图片ID
func (*PictureGetRequest) SetStartDate ¶
func (r *PictureGetRequest) SetStartDate(value string)
查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss
func (*PictureGetRequest) SetTitle ¶
func (r *PictureGetRequest) SetTitle(value string)
图片标题,最大长度50字符,中英文都算一字符
type PictureGetResponse ¶
type PictureGetResponseResult ¶
type PictureGetResponseResult struct {
Response *PictureGetResponse `json:"picture_get_response"`
}
type PictureIsreferencedGetRequest ¶
type PictureIsreferencedGetRequest struct {
open_taobao.TaobaoMethodRequest
}
查询图片是否被引用,被引用返回true,未被引用返回false
func (*PictureIsreferencedGetRequest) GetResponse ¶
func (r *PictureIsreferencedGetRequest) GetResponse(accessToken string) (*PictureIsreferencedGetResponse, []byte, error)
func (*PictureIsreferencedGetRequest) SetPictureId ¶
func (r *PictureIsreferencedGetRequest) SetPictureId(value string)
图片id
type PictureIsreferencedGetResponse ¶
type PictureIsreferencedGetResponse struct {
IsReferenced bool `json:"is_referenced"`
}
type PictureIsreferencedGetResponseResult ¶
type PictureIsreferencedGetResponseResult struct {
Response *PictureIsreferencedGetResponse `json:"picture_isreferenced_get_response"`
}
type PictureReplaceRequest ¶
type PictureReplaceRequest struct {
open_taobao.TaobaoMethodRequest
}
替换一张图片,只替换图片数据,图片名称,图片分类等保持不变。
func (*PictureReplaceRequest) GetResponse ¶
func (r *PictureReplaceRequest) GetResponse(accessToken string) (*PictureReplaceResponse, []byte, error)
func (*PictureReplaceRequest) SetImageData ¶
func (r *PictureReplaceRequest) SetImageData(value string)
图片二进制文件流,不能为空,允许png、jpg、gif图片格式
func (*PictureReplaceRequest) SetPictureId ¶
func (r *PictureReplaceRequest) SetPictureId(value string)
要替换的图片的id,必须大于0
type PictureReplaceResponse ¶
type PictureReplaceResponse struct {
Done bool `json:"done"`
}
type PictureReplaceResponseResult ¶
type PictureReplaceResponseResult struct {
Response *PictureReplaceResponse `json:"picture_replace_response"`
}
type PictureUpdateRequest ¶
type PictureUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
修改指定图片的图片名
func (*PictureUpdateRequest) GetResponse ¶
func (r *PictureUpdateRequest) GetResponse(accessToken string) (*PictureUpdateResponse, []byte, error)
func (*PictureUpdateRequest) SetNewName ¶
func (r *PictureUpdateRequest) SetNewName(value string)
新的图片名,最大长度50字符,不能为空
func (*PictureUpdateRequest) SetPictureId ¶
func (r *PictureUpdateRequest) SetPictureId(value string)
要更改名字的图片的id
type PictureUpdateResponse ¶
type PictureUpdateResponse struct {
Done bool `json:"done"`
}
type PictureUpdateResponseResult ¶
type PictureUpdateResponseResult struct {
Response *PictureUpdateResponse `json:"picture_update_response"`
}
type PictureUploadRequest ¶
type PictureUploadRequest struct {
open_taobao.TaobaoMethodRequest
}
上传单张图片
func (*PictureUploadRequest) GetResponse ¶
func (r *PictureUploadRequest) GetResponse(accessToken string) (*PictureUploadResponse, []byte, error)
func (*PictureUploadRequest) SetImageInputTitle ¶
func (r *PictureUploadRequest) SetImageInputTitle(value string)
包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名
func (*PictureUploadRequest) SetImg ¶
func (r *PictureUploadRequest) SetImg(value string)
图片二进制文件流,不能为空,允许png、jpg、gif图片格式,2M以内。
func (*PictureUploadRequest) SetPictureCategoryId ¶
func (r *PictureUploadRequest) SetPictureCategoryId(value string)
图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类
func (*PictureUploadRequest) SetTitle ¶
func (r *PictureUploadRequest) SetTitle(value string)
图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1
type PictureUploadResponse ¶
type PictureUploadResponse struct {
Picture *Picture `json:"picture"`
}
type PictureUploadResponseResult ¶
type PictureUploadResponseResult struct {
Response *PictureUploadResponse `json:"picture_upload_response"`
}
type PictureUserinfoGetRequest ¶
type PictureUserinfoGetRequest struct {
open_taobao.TaobaoMethodRequest
}
查询用户的图片空间使用信息,包括:订购量,已使用容量,免费容量,总的可使用容量,订购有效期,剩余容量
func (*PictureUserinfoGetRequest) GetResponse ¶
func (r *PictureUserinfoGetRequest) GetResponse(accessToken string) (*PictureUserinfoGetResponse, []byte, error)
type PictureUserinfoGetResponse ¶
type PictureUserinfoGetResponse struct {
UserInfo *UserInfo `json:"user_info"`
}
type PictureUserinfoGetResponseResult ¶
type PictureUserinfoGetResponseResult struct {
Response *PictureUserinfoGetResponse `json:"picture_userinfo_get_response"`
}
type TOPPaginator ¶
type TOPPaginator struct { CurrentPage int `json:"current_page"` IsLastPage bool `json:"is_last_page"` PageSize int `json:"page_size"` TotalResults int `json:"total_results"` }
分页信息
type TOPSearchResult ¶
type TOPSearchResult struct { Paginator *TOPPaginator `json:"paginator"` VideoItems []*VideoItem `json:"video_items"` }
搜索返回的结果类
type UserInfo ¶
type UserInfo struct { AvailableSpace string `json:"available_space"` FreeSpace string `json:"free_space"` OrderExpiryDate string `json:"order_expiry_date"` OrderSpace string `json:"order_space"` RemainingSpace string `json:"remaining_space"` UsedSpace string `json:"used_space"` WaterMark string `json:"water_mark"` }
图片空间的用户信息获取,包括订购容量等
type VideoAddRequest ¶
type VideoAddRequest struct {
open_taobao.TaobaoMethodRequest
}
此api添加一个视频,视频发布后需要转码,审核等操作步骤,表示添加完成之后并不是立马能播放该视频,需要等后台转码成功,审核通过之后。线上视频转码审核过程比较快
func (*VideoAddRequest) GetResponse ¶
func (r *VideoAddRequest) GetResponse(accessToken string) (*VideoAddResponse, []byte, error)
func (*VideoAddRequest) SetCoverUrl ¶
func (r *VideoAddRequest) SetCoverUrl(value string)
视频封面url,不能为空且不能超过512个英文字母
func (*VideoAddRequest) SetDescription ¶
func (r *VideoAddRequest) SetDescription(value string)
视频描述信息,不能为空且不能超过256个汉字
func (*VideoAddRequest) SetTags ¶
func (r *VideoAddRequest) SetTags(value string)
视频标签,以','隔开,不能为空且总长度不超过128个汉字
func (*VideoAddRequest) SetTitle ¶
func (r *VideoAddRequest) SetTitle(value string)
视频标题,不能为空且不超过128个汉字
func (*VideoAddRequest) SetUploadId ¶
func (r *VideoAddRequest) SetUploadId(value string)
上传唯一识别符,上传id
func (*VideoAddRequest) SetUploaderId ¶
func (r *VideoAddRequest) SetUploaderId(value string)
视频上传者数字id
func (*VideoAddRequest) SetVideoAppKey ¶
func (r *VideoAddRequest) SetVideoAppKey(value string)
在淘宝视频中的应用key,该值向淘宝视频申请产生
type VideoAddResponse ¶
type VideoAddResponse struct {
Model int `json:"model"`
}
type VideoAddResponseResult ¶
type VideoAddResponseResult struct {
Response *VideoAddResponse `json:"video_add_response"`
}
type VideoItem ¶
type VideoItem struct { CoverUrl string `json:"cover_url"` Description string `json:"description"` Duration int `json:"duration"` IsOpenToOther bool `json:"is_open_to_other"` State int `json:"state"` Tags []string `json:"tags"` Title string `json:"title"` UploadTime string `json:"upload_time"` UploaderId int `json:"uploader_id"` VideoId int `json:"video_id"` VideoPlayInfo *VideoPlayInfo `json:"video_play_info"` }
视频
type VideoPlayInfo ¶
type VideoPlayInfo struct { AndroidpadUrl string `json:"androidpad_url"` AndroidpadV23Url *AndroidVlowUrl `json:"androidpad_v23_url"` AndroidphoneUrl string `json:"androidphone_url"` AndroidphoneV23Url *AndroidVlowUrl `json:"androidphone_v23_url"` FlashUrl string `json:"flash_url"` IpadUrl string `json:"ipad_url"` IphoneUrl string `json:"iphone_url"` WebUrl string `json:"web_url"` }
视频播放信息
type VideoUpdateRequest ¶
type VideoUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
此api用于更新一个视频的基本信息,包括视频标题,标签,描述,封面等,不包括是否允许他人观看,更新是否允许他人观看详见taobao.videos.open
func (*VideoUpdateRequest) GetResponse ¶
func (r *VideoUpdateRequest) GetResponse(accessToken string) (*VideoUpdateResponse, []byte, error)
func (*VideoUpdateRequest) SetCoverUrl ¶
func (r *VideoUpdateRequest) SetCoverUrl(value string)
视频封面url,不能超过512个英文字母
func (*VideoUpdateRequest) SetDescription ¶
func (r *VideoUpdateRequest) SetDescription(value string)
视频描述信息,不能超过256个汉字
func (*VideoUpdateRequest) SetTags ¶
func (r *VideoUpdateRequest) SetTags(value string)
视频标签,以','隔开,且总长度不超过128个汉字
func (*VideoUpdateRequest) SetTitle ¶
func (r *VideoUpdateRequest) SetTitle(value string)
视频标题,不超过128个汉字。title, tags,cover_url和description至少必须传一个
func (*VideoUpdateRequest) SetVideoAppKey ¶
func (r *VideoUpdateRequest) SetVideoAppKey(value string)
在淘宝视频中的应用key,该值向淘宝视频申请产生
type VideoUpdateResponse ¶
type VideoUpdateResponse struct {
Model bool `json:"model"`
}
type VideoUpdateResponseResult ¶
type VideoUpdateResponseResult struct {
Response *VideoUpdateResponse `json:"video_update_response"`
}
type VideosSearchRequest ¶
type VideosSearchRequest struct {
open_taobao.TaobaoMethodRequest
}
此api用于搜索应用上传的所有视频,应用由appKey 唯一识别,搜索条件包含视频标题,标签,状态,关键字(标题or标签,不能同时设置),上传者数字id
func (*VideosSearchRequest) GetResponse ¶
func (r *VideosSearchRequest) GetResponse(accessToken string) (*VideosSearchResponse, []byte, error)
func (*VideosSearchRequest) SetCurrentPage ¶
func (r *VideosSearchRequest) SetCurrentPage(value string)
页码。默认返回的数据是从第一页开始
func (*VideosSearchRequest) SetFields ¶
func (r *VideosSearchRequest) SetFields(value string)
需要返回的视频对象字段。VideoItem结构体中所有字段均可返回;多个字段用“,”分隔;其中video_play_info中的播放url可选择性返回,其余属性全部返回;如果想返回整个子对象中所有url,那字段为video_play_info,如果是想返回子对象里面的字段,那字段为video_play_info.web_url。
func (*VideosSearchRequest) SetKeywords ¶
func (r *VideosSearchRequest) SetKeywords(value string)
关键字(标题or标签,不能同时设置title,tag,否则冲突)
func (*VideosSearchRequest) SetPageSize ¶
func (r *VideosSearchRequest) SetPageSize(value string)
每页条数,默认值是12
func (*VideosSearchRequest) SetStates ¶
func (r *VideosSearchRequest) SetStates(value string)
视频状态列表;视频状态:等待转码(1),转码中(2),转码失败(3),等待审核(4),未通过审核(5),通过审核(6)
func (*VideosSearchRequest) SetUploaderId ¶
func (r *VideosSearchRequest) SetUploaderId(value string)
视频上传者数字id
func (*VideosSearchRequest) SetVideoAppKey ¶
func (r *VideosSearchRequest) SetVideoAppKey(value string)
在淘宝视频中的应用key,该值向淘宝视频申请产生
type VideosSearchResponse ¶
type VideosSearchResponse struct {
SearchResult *TOPSearchResult `json:"search_result"`
}
type VideosSearchResponseResult ¶
type VideosSearchResponseResult struct {
Response *VideosSearchResponse `json:"videos_search_response"`
}