-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add DALEXNI (Image/Video Hosting) (#85)
- Loading branch information
1 parent
53f36b9
commit acf5733
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
+ ImgBB | ||
+ Cloudinary | ||
+ EasyImage | ||
+ DALEXNI | ||
|
||
查看更多: `./upgit ext ls` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"meta": { | ||
"id": "dalexni", | ||
"name": "DALEXNI Uploader", | ||
"type": "simple-http-uploader", | ||
"version": "0.0.1", | ||
"repository": "" | ||
}, | ||
"http": { | ||
"request": { | ||
// Get your api key from https://dalexni.com/settings/api | ||
"url": "https://dalexni.com/api/1/upload", | ||
"method": "POST", | ||
"params": { | ||
"key": "$(ext_config.key)" | ||
}, | ||
"headers": { | ||
"Content-Type": "multipart/form-data", | ||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36" | ||
}, | ||
"body": { | ||
"key": { | ||
"type": "string", | ||
"value": "$(ext_config.key)" | ||
}, | ||
"image": { | ||
"type": "file_base64", | ||
"value": "$(task.local_path)" | ||
}, | ||
"format": { | ||
"type": "string", | ||
"value": "json" | ||
} | ||
} | ||
} | ||
}, | ||
"upload": { | ||
"rawUrl": { | ||
"from": "json_response", | ||
"path": "data.url" | ||
} | ||
} | ||
} |