v1.thread.upload
vissong edited this page Oct 16, 2014
·
5 revisions
名称 | 内容 |
---|---|
请求URL | http(s)://openapi.wsq.qq.com/v1/thread/upload |
请求方法 | POST |
数据格式 | JSON |
参数名 | 说明 | 备注 |
---|---|---|
appToken | 应用的appToken | |
sId | 站点的 sId | |
accessToken | 用户登录态 | |
pic | 图片 file | 需要跟 ;type=image/jpeg |
请求参数请遵守 RFC 1738,对参数进行 encode
参数名 | 说明 | 备注 |
---|---|---|
picId | 图片ID | |
picId | 图片地址列表 | |
small | small 尺寸的图片地址 | |
middle | middle 尺寸的图片地址 | |
large | large 尺寸的图片地址 | |
big | big 尺寸的图片地址 |
http(s)://openapi.wsq.qq.com/v1/thread/upload
POST:
sId=10000
accessToken=*******************
appToken=************
pic=@FILEPATH;type=image/jpeg
{
errCode: 0,
errMsg: "",
data: {
picId: "100",
picUrl: {
small: "http://...",
middle: "http://...",
big: "http://...",
large: "http://..."
}
}
}
{
errCode: 2006,
errMsg: 'error message'
}
本 wiki 由微社区研发团队撰写