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

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

Closed
bradvogel opened this issue Sep 29, 2014 · 2 comments
Closed

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

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

Comments

@bradvogel
Copy link

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?

@ryanseys
Copy link
Contributor

Ah, multiple query params with the same key. Yes, this issue has been raised and it's a weird one.

Related issue: #295

@ryanseys
Copy link
Contributor

ryanseys commented Oct 6, 2014

Should be fixed in 1.0.16

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