我试图仅使用Bash shell脚本来自动化Dropbox操作。我正在使用Dropbox API。我被困在身份验证过程中,并使用this HTTP documentation作为参考。我的代码是这样的:
#!/bin/bash
xdg-open 'https://www.dropbox.com/1/oauth1/authorize?client_id=<my_app_key>&response_type=code&state=<my_access_token>
这将打开页面,其中显示:
将此代码输入<My App Name>
中以完成该过程。
然后使用curl执行相同的操作将返回页面的HTML代码。任何帮助将不胜感激,谢谢