【发布时间】:2011-05-17 21:13:33
【问题描述】:
我正在使用 Neilcrookes 对 CakePHP HttpSocket 的 OAuth 扩展 (http://www.neilcrookes.com/2010/04/12/cakephp-oauth-extension-to-httpsocket/)
我的请求如下:
Array (
[method] => POST
[uri] => Array (
[host] => api.twitter.com
[path] => 1/statuses/update.json
)
[auth] => Array (
[method] => OAuth
[oauth_token] => xxx
[oauth_token_secret] => xxx
[oauth_consumer_key] => xxx
[oauth_consumer_secret] => xxx
)
[body] => Array (
[status] => Hello World
)
)
我有来自用户先前请求的 oauth_token 和 oauth_token_secret
回复看起来像{“request”:”\/1\/statuses\/update.json”,”error”:”Incorrect signature”}
提前致谢
【问题讨论】:
标签: cakephp oauth twitter twitter-oauth