Hi
After getting the access tokens i used the sample "echo.html" provided by JS
library
Both GET and POST (that require auth and with parameters) are working fine.
We just need to follow the same code



On Tue, Jul 28, 2009 at 12:54 PM, srikanth reddy <srikanth.yara...@gmail.com
> wrote:

> @goodtest
> Hi Post methods (that require auth) seem to be working fine.
> I am stuck with GET (problem with parametrs). checking whether the problem
> is incorrect usage of library  or the problem with library.
> will let u know
>
>
> On Tue, Jul 28, 2009 at 12:25 PM, goodtest <goodtest...@gmail.com> wrote:
>
>>
>> >Need to verify that the parameters are signed by both consumer secret and
>> access secret.
>> I am doing that already. For example, when I call
>> http://twitter.com/statuses/friends_timeline.json, I pass
>> consumerSecret, tokenSecret...
>> Using the JS library, it looks like this to get the signature:
>>
>>        var accessor = { consumerSecret: this.consumerSecret
>>                , tokenSecret   : <token_secret>};
>>        var message = { method: "GET"
>>                , action: "
>> http://twitter.com/statuses/friends_timeline.json";
>>                , parameters: new Array()
>>        };
>>        message.parameters.push(["oauth_consumer_key",this.consumerKey]);
>>        message.parameters.push(["oauth_version","1.0"]);
>>        message.parameters.push(["oauth_timestamp", OAuth.timestamp()]);
>>        message.parameters.push(["oauth_nonce", OAuth.nonce(11)]);
>>        message.parameters.push(["oauth_signature_method", "HMAC-SHA1"]);
>>        message.parameters.push(["oauth_token", <auth_token>]);
>>        OAuth.SignatureMethod.sign(message, accessor);
>>        var signature = OAuth.getParameter(message.parameters,
>> "oauth_signature");
>>
>>
>>
>>
>

Reply via email to