Closed mindrones closed 5 years ago
This commit solves the problem. It was an unnecessary token check. Now (v.1.0.8) you can use getAll method without token, to retrieve public gists. Thank you for your feedback @mindrones
Cool, worked perfectly to retrieve my own gists with this (no token):
.getAll({
filterBy: [
{userName: "mindrones"},
]
})
Thanks!
Note aside, this one:
.getAll({
rawContent: true,
filterBy: [
{userName: "mindrones"},
{content: "svelte"},
]
})
fails with a
TypeError: _.get(...).match is not a function
node_modules/gist-client/lib/gistClient.js:223:61
Not sure if that's supposed to work or wrong config. If needed can open a new issue.
Works! Thanks a lot for these quick fixes, closing :)
Hi, related to https://github.com/sveltejs/svelte.technology/issues/382, I'm trying to retrieve public gists containing the word "svelte":
but I get the error
Error: You need to set token before by setToken() method
. According to https://github.com/jvcalderon/gist-client#get-a-gist-list it seemed that this should work without a token? Thanks!