oDesk API实现

时间:2014-07-30 05:04:16

标签: php api odesk

这里有人已经成功实施了oDesk应用程序授权吗? 我正在尝试制作一个能够提升odesk档案的网络应用程序。

这样做需要使用OAuth版本1访问令牌。我正在使用odesk官方库https://github.com/odesk/php-odesk,但遗憾的是没有成功。

我阅读了自述文件和文档,但它对我没有帮助。 这是要求授权的网址:http://www.reygcalantaol.com/vendor/web.php

访问访问令牌时出错:

Fatal error: Uncaught exception 'OAuthException2' with message 'Unexpected result from the server "https://www.odesk.com/api/auth/v1/oauth/token/access" (401) while requesting an access token' in /home/reybysgd/public_html/reygcalantaol.com/vendor/odesk/vendor-src/oauth-php/library/OAuthRequester.php:258 Stack trace: #0 /home/reybysgd/public_html/reygcalantaol.com/vendor/odesk/src/oDesk/API/AuthTypes/OAuthPHPLib.php(118): OAuthRequester::requestAccessToken('62110e239aa4ef2...', '5048a89e30e6b0a...', 0, 'POST', Array, Array) #1 /home/reybysgd/public_html/reygcalantaol.com/vendor/odesk/src/oDesk/API/AuthTypes/AbstractOAuth.php(165): oDesk\API\AuthTypes\OAuthPHPLib->_setupAccessToken('2201514a38598ae...') #2 /home/reybysgd/public_html/reygcalantaol.com/vendor/odesk/src/oDesk/API/Client.php(110): oDesk\API\AuthTypes\AbstractOAuth->auth() #3 /home/reybysgd/public_html/reygcalantaol.com/vendor/web.php(42): oDesk\API\Client->auth() #4 {main} thrown in /home/reybysgd/public_html/reygcalantaol.com/vendor/odesk/vendor-src/oauth-php/library/OAuthRequester.php on line 258

非常感谢帮助。

0 个答案:

没有答案