.get(owner: owner, repo: name.. returns nil values because of bad parsing (actually it's 401_)
skywinder opened this issue · 1 comments
skywinder commented
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 commented