获取域名
API-NAME: GetDomain
Request
名称 |
必填 |
描述 |
取值说明 |
key |
Y |
用于确定用户 |
由平台提供 |
Response
名称 |
描述 |
取值说明 |
id |
域名id,可以在查询图片链接回传,输出指定域名的url |
|
name |
域名名称,跟系统图床功能查看的下拉选项一致 |
|
Example
{
"ack": "success",
"message": "",
"domain": [{
"id": "1",
"name": "无水印"
}, {
"id": "2",
"name": "AM1"
}]
}
查询图片链接
API-NAME: ImageQuery
Request
名称 |
必填 |
描述 |
取值说明 |
key |
Y |
用于确定用户 |
由平台提供 |
domain_id |
Y |
域名id |
|
sku |
Y |
产品SKU,多个使用英文半角逗号隔开 |
000001,000003 |
Response
名称 |
描述 |
取值说明 |
result |
包含结果 |
|
result内部结构 |
见例子里的说明 |
|
system_url |
带系统水印的链接 |
|
thumb_url |
缩略图链接,方便显示尺寸小,文件size小 |
|
domain_url |
指定域名的完整链接 |
|
Example
{
"ack": "success",
"message": "",
"result": {
"000001": { //sku
"000001-001.jpg": { //图片文件名
"system_url": "https:\/\/xxx.com\/5c805fe30d4bd1a27c82ba8a2c9726d9b_x", //
"thumb_url": "https:\/\/xxx.com\/5c805fe30d4bd1a27c82ba8a2c9726d9b_thumb",
"domain_url": "https:\/\/xxx.com\/5c805fe30d4bd1a27c82ba8a2c9726d9b"
},
"000001-002.jpg": {
"system_url": "https:\/\/xxx.com\/385f39178373a5dea3d52f2df99b346d6_x",
"thumb_url": "https:\/\/xxx.com\/385f39178373a5dea3d52f2df99b346d6_thumb",
"domain_url": "https:\/\/xxx.com\/385f39178373a5dea3d52f2df99b346d6e77f958"
}
},
"000002": {
"000002-001.jpg": {
"system_url": "https:\/\/xxx.com\/7e164fc2a61b3f065c5ecac3304b9131_x",
"thumb_url": "https:\/\/xxx.com\/7e164fc2a61b3f065c5ecac3304b9131_thumb",
"domain_url": "https:\/\/xxx.com\/7e164fc2a61b3f065c5ecac3304b9131"
}
}
}
}