Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
一个Bash脚本,用于将图像上传到imgur.com,自动请求新的访问令牌_Bash_Oauth 2.0_Command Line Interface_Image Uploading_Imgur - Fatal编程技术网

一个Bash脚本,用于将图像上传到imgur.com,自动请求新的访问令牌

一个Bash脚本,用于将图像上传到imgur.com,自动请求新的访问令牌,bash,oauth-2.0,command-line-interface,image-uploading,imgur,Bash,Oauth 2.0,Command Line Interface,Image Uploading,Imgur,我想知道是否有一个已经编写好的Bash脚本,它能够将图像上传到imgur.com,并在过期后自动请求新的访问令牌 在搜索这样的脚本时,我发现了一些不支持OAuth2的脚本: 引自Imgur的OAuth2.0概述 imgurapi使用oauth2.0进行身份验证。OAuth 2.0有四个步骤:注册、授权、发出请求,以及在初始访问令牌过期后获取新的访问令牌 在中搜索时,我发现脚本不支持OAuth2.0,因此它们与我的案例无关 谢谢大家! 几天前我写了这样一个工具: 以下是一些用法示例: Upload

我想知道是否有一个已经编写好的Bash脚本,它能够将图像上传到imgur.com,并在过期后自动请求新的访问令牌

在搜索这样的脚本时,我发现了一些不支持OAuth2的脚本:

引自Imgur的OAuth2.0概述

imgurapi使用oauth2.0进行身份验证。OAuth 2.0有四个步骤:注册、授权、发出请求,以及在初始访问令牌过期后获取新的访问令牌

在中搜索时,我发现脚本不支持OAuth2.0,因此它们与我的案例无关


谢谢大家!

几天前我写了这样一个工具:

以下是一些用法示例:

Upload foo.png, bar.png, baz.png and print the result links to stdout.
$ rugmi -f foo.png -f bar.png -f baz.png
    or
$ rugmi -- foo.png bar.png baz.png

Upload all JPEG files in a directory and print the result links to stdout.
$ find dir/ -type f -name '*.jpg' -print0 | rugmi -0

Upload foo.png and print an HTML type of link to be displayed as a medium thumbnail.
rugmi -f foo.png -t HTML -s MT