IMAP has nothing to do with contacts.

You have to use OAuth2 and the google contacts API:
https://developers.google.com/google-apps/contacts/v3/reference


On Fri, Dec 13, 2013 at 9:44 AM, Divyanshu Negi
<[email protected]>wrote:

> I got node-imap package for IMAP connection with gmail , but it only
> provide the email messages not the contacts , is there a way to get
> contacts and edit them via IMAP ?
>
>
> On Friday, 13 December 2013 19:47:42 UTC+5:30, Abhay Rana wrote:
>
>> I don't think any of  the official google APIs offer usage by
>> username/password. I think the only way to do what you want is to access
>> the gmail account using IMAP. I don't know if there are any node libraries
>> for IMAP access, so google around a bit.
>> —
>> Sent from Mailbox <https://www.dropbox.com/mailbox> for iPad
>>
>>
>> On Thu, Dec 12, 2013 at 11:12 PM, Divyanshu Negi 
>> <[email protected]>wrote:
>>
>>> hi, i tried using request but everywhere i found out that i need to pass
>>> the CLIENT_ID, SECRET,ACCESS_TOKEN , i need to get the method to get
>>> contacts from gmail so i can only pass EMAIL and PASSWORD of a registered
>>> gmail user like me.
>>>
>>> On Thursday, 12 December 2013 22:43:54 UTC+5:30, Abhay Rana wrote:
>>>>
>>>> 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 <https://www.dropbox.com/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.
>>>
>>
>>  --
> --
> 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