Closed
Description
Hi, related to sveltejs/v2.svelte.dev#382, I'm trying to retrieve public gists containing the word "svelte":
const GistClient = require("gist-client");
const gistClient = new GistClient();
gistClient
.getAll({
rawContent: true,
filterBy: [
{public: true},
{content: "svelte"},
{since: "2018-11-01T00:00:01Z"}
]
})
.then(gistList => {
console.log(JSON.stringify(gistList))
})
.catch(err => {
console.log(err)
});
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!
Metadata
Metadata
Assignees
Labels
No labels