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

Better documentation or example on how to add params on an API request #4

Open
tennisonchan opened this issue Oct 15, 2017 · 1 comment

Comments

@tennisonchan
Copy link
Contributor

If you want to call a gist with a param, say a /gist request with a param since (api), you need to do as the following:

// GET /gists?since=2017-10-15T18:20:28
gists.all({
    since: "2017-10-15T18:20:28",
    params: ['since']
}, cb);
@jonschlinkert
Copy link
Owner

thanks! I'll add this to the docs after we get your pr merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants