Skip to content

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

@djholly123

Description

@djholly123

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 ?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions