I think I'm also having the same issue. Creating an acount w/ the
oauth header fails. But creating with password works.
After having created said account, using the oauth header mechanism
"appears" to work. By that, I mean I've been able to make successful
requests. However, in testing I've tampered with the header params
and even after tampering it still works, which it shouldn't. As long
as the twitter_oauth_header isn't empty, it appears to work.
** Example (getting the user balance) **
Pass #1
-------
request:
'twitter_username' => 'ikirigin', 'twitter_oauth_header' => ''
response:
{"reason": "must include twitter_password or twitter_oauth_header",
"request": "/api/user/balance/?
twitter_username=ikirigin&twitter_oauth_header=", "result": "failure"}
Pass #2
-------
request:
'twitter_username' => 'ikirigin', 'twitter_oauth_header' =>
'WHYDOESTHISWORK'
response:
{"currency": "USD", "balance": 1545.01, "request": "/api/user/balance/?
twitter_username=ikirigin&twitter_oauth_header=WHYDOESTHISWORK",
"result": "success"}
thx,
-matt
On May 22, 8:00 am, Kjell Bublitz <
m3nt0r...@gmail.com> wrote:
> No, i am not using the exact same header. Nonce is always regenerated.
>
> With "same" i mean that i am using the same header-generation method i
> use in all calls. The only call that doesn't work with my header is
> createAccount.
>
> Best,
> Kjell
>
> Am 22.05.2009 um 15:59 schrieb Ivan Kirigin:
>
>
>
> > I'll look into this in greater detail.
>
> > Are you using the same header twice?
>
> > It shouldn't work more than once. There is a nonce in there, and
> > twitter will reject a header already used.
>
> > Ivan
>
> > On Fri, May 22, 2009 at 1:07 AM, Kjell Bublitz <
m3nt0r...@gmail.com>