EasyImages2.0/docs/使用ShareX上传.md

30 lines
910 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

- 登录图床后台->图床安全->高级设置->开启API上传
- 下载[ShareX](https://getsharex.com/downloads/),然后打开目标->自定义上传目标->导入下面代码即可上传。
![使用ShareX上传](images/f54adf65a4ds56f.png)
- 需要注意,`RequestURL`需要替换成自己的域名token也需要修改成自己的
```ShareX
{
"Version": "15.0.0",
"Name": "简单图床API图片上传",
"DestinationType": "ImageUploader",
"RequestMethod": "POST",
"RequestURL": "https://png.cm/api/index.php",
"Body": "MultipartFormData",
"Arguments": {
"token": "1c17b11693cb5ec63859b091c5b9c1b2"
},
"FileFormName": "image",
"URL": "{json:url}",
"ThumbnailURL": "{json:thumb}",
"DeletionURL": "{json:del}",
"ErrorMessage": "{json:message}"
}
```
![](images/ShareX_UwVwPnC3MJ.png)
- 上边设置好以后 设置为默认上传
![](images/ShareX_luVGfPaU9E.png)