Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmail get a thread ... get not defined #294

Closed
djholly123 opened this issue Sep 23, 2014 · 2 comments
Closed

gmail get a thread ... get not defined #294

djholly123 opened this issue Sep 23, 2014 · 2 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@djholly123
Copy link

Hi I'm trying to get a Thread from gmail but getting an error

TypeError: Cannot call method 'get' of undefined

   var gmail = google.gmail({ version: 'v1', auth: oauth2Client });

    gmail.users.messages.threads.get({
        id: "148a32fa2606e57b",
        userId: "me"
    }, function(err, results){
        if(err){
            console.log(err)
            return
        };
        console.log(results);
    });

I am able to do a send with gmail.users.messages.send( ... args, callback) would expect same style of code to work for other calls ... Are there any good examples of getting a message / message thread when you have the id ?

@ryanseys
Copy link
Contributor

Take a look at gmail.users.threads.get() and let me know if that's what you need.

@djholly123
Copy link
Author

Hi Ryan
Yes that was my problem ... its working now thanks ... doh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants