我是一名開發人員,剛接觸盒子。Box API創建文件夾
我想使用Box API 2.0創建文件夾。我創建了一個應用程序並獲得了API密鑰。我已成功獲取我的登錄名「[email protected]」的授權令牌。
使用這些憑據,當我嘗試使用下面創建一個文件夾:
網址:「https://www.box.com/api/2.0/folders/321654595?response_type=xml」
XML:「 <?xml version='1.0' encoding='UTF-8' ?><request><api_key>API_KEY</api_key><auth_token>AUTH_TOKEN</auth_token><name>New Folder</name></request>
「
我得到如下回應
<?xml version="1.0" encoding="UTF-8"?>
<error><status>401</status><code>unauthorized</code><help-url>http://developers.box.com/docs/#errors</help-url><message>Unauthorized</message><request-id>1341258286500ca4843dfa7</request-id></error>
我用Perl和 」LWP :: UserAgent的& HTTP ::對於HTTP調用支持::常見「 模塊。
我正在走下正確的道路還是錯過了一些顯而易見的東西。
謝謝
帕裏
[email protected]
感謝您的快速幫助。試着按照你的建議。 但我仍然得到相同的'unathorized'錯誤。任何援助將不勝感激。 – Parivalavan 2012-07-23 16:41:41