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

Private data not returning #626

Open
jobvite-github opened this issue Aug 31, 2020 · 0 comments
Open

Private data not returning #626

jobvite-github opened this issue Aug 31, 2020 · 0 comments

Comments

@jobvite-github
Copy link

@jobvite-github jobvite-github commented Aug 31, 2020

When making a call to get the authenticated user's gists, it only returns the public gists.

import GitHubAPI from 'github-api';

const getGists = (async () => {
    var gh = new GitHubAPI({
	token: 'token'
    });
    var user = gh.getUser();
    var gists = user.listGists().then( data => data );

    return gists;
})

Is this a GitHub API issue, a GitHub.JS issue, or am I missing something?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
@jobvite-github and others
You can’t perform that action at this time.