Skip to content

How to specify multiple instances of the same header? #298

@bradvogel

Description

@bradvogel

The metadataHeaders API param in the Gmail API can have multiple instances. See https://developers.google.com/gmail/api/v1/reference/users/messages/get. However, the library doesn't appear to support this. I would like to do something like this:

gmail.users.messages.get({
        userId: 'me',
        id: '148c29056c3dfcbc',
        format: 'metadata',
        metadataHeaders: ['To', 'Date'] // Doesn't work.
}, done);

And it should be serialized as: https://www.googleapis.com/gmail/v1/users/me/messages/148c29056c3dfcbc?metadataHeaders=To&metadataHeaders=Date&key={...}

Is there any way to do this?

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