Last active
January 2, 2022 11:48
-
-
Save gstf/9682165 to your computer and use it in GitHub Desktop.
CLI script to upload image to imgur.com. (Please don't abuse the API key, create your own at http://api.imgur.com/)
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
#!/bin/sh | |
curl -X POST -H "Authorization: Client-ID 0db8b3c3e10d89b" -F "image=@$1" https://api.imgur.com/3/upload \ | |
| jq '.data.link' \ | |
| tr -d '"' \ | |
| pbcopy |
Why did you leave your api key here ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the great information.
It was really helpful for me.
I also made my blog from your help.
https://www.anandnawal.com