gists icon indicating copy to clipboard operation
gists copied to clipboard

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

Open tennisonchan opened this issue 6 years ago • 1 comments

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);

tennisonchan avatar Oct 15 '17 18:10 tennisonchan

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

jonschlinkert avatar Oct 19 '17 12:10 jonschlinkert