Take a look at request module by mikeal. It should help you convert your curl 
commands to node.js code. If you really get strict, I would also recommend 
using something like Charles proxy with any of the other google api clients 
(say python) to debug and understand the flow of commands to make.

—
Sent from Mailbox for iPad

On Thu, Dec 12, 2013 at 10:18 PM, Divyanshu Negi
<[email protected]> wrote:

> any help ? please 
> On Monday, 10 June 2013 22:53:35 UTC+5:30, Jyoti Chettri wrote:
>>
>> looked like playground error was chrome error, worked with ff.
>>
>> But still, my code is not retrieving google contacts.Yes later I changed 
>> header to 
>>
>> 'Authorization': 'OAuth ' + access_token, like in your app.
>>
>> i'm still getting 
>>
>> error: {"statusCode":400,"data":"{\n \"error\" : \"invalid_grant\"\n}"
>>>
>>>
>> :((
>>
> -- 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to