2013-02-22 67 views
0

我有我的應用程序的所有標記和祕密,但我不明白如何將它們包含在URL(URI?)中以獲得非縮短的共享鏈接到我的Dropbox中的文件夾或文件(即,不縮寫爲「http://db.tt/ ....」,而是完整的URL)如何通過REST API從Dropbox獲取未中斷的鏈接

我需要在我的通話中包含哪些標記/密鑰/機密?

我想用curl e.g:

curl --stderr /dev/null https://api.dropbox.com/1/shares/<root>/<path>等等...

應該有類似的東西在此之後?oauth_consumer_key=xxxxxxxx&.....,但我不能弄明白。

回答

0

周圍挖掘後,我想通了......對別人誰可能需要一個快速的答案:

curl --header 'Authorization: OAuth oauth_version=1.0, oauth_signature_method=PLAINTEXT, oauth_consumer_key=[app_key], oauth_token=[access_token], oauth_signature=[app_secret]&[access_token_secret]' 'https://api.dropbox.com/1/shares/[root]/[path]?short_url=false'

[root]要麼是「沙箱」或「保管箱」(有限或完全訪問,取決於應用程序)

相關問題