A Bash script to upload images to imgur.com automatically asking for new access_token
问题 I was wondering if there's an already written Bash script which will be capable of uploading images to imgur.com along with automating the process of requesting new access token once it expire. Searching for such a script I found a few which do not support OAuth2: Quoted from Imgur's OAuth2.0 overview The Imgur API uses OAuth 2.0 for authentication. OAuth 2.0 has four steps: registration, authorization, making the request, and getting new access_tokens after the initial one expired .