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

.get(owner: owner, repo: name.. returns nil values because of bad parsing (actually it's 401_) #12

Open
skywinder opened this issue Jan 7, 2020 · 1 comment

Comments

@skywinder
Copy link

 let authentication = AccessTokenAuthentication(access_token: GITHUB_TOKEN)
            let ghapi = RepositoriesAPI(authentication: authentication)
            ghapi.get(owner: owner, repo: name, completion:
                { (response, error) in
                if response != nil {
                    print(response!)
                } else {
                    print(error ?? "empty response")
                }
            })

returns repo with all nil's.

Actually session returns 401 with description:

Optional<String>
  - some : "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://developer.github.com/v3\"}"

Can't realize, how to do authentification the right way

@nancy728
Copy link

#12 (comment)

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

No branches or pull requests

2 participants