Skip to content

Is a token required for public gists? #1

Closed
@mindrones

Description

@mindrones

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions