Open skywinder opened 4 years ago
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
https://github.com/serhii-londar/GithubAPI/issues/12#issue-546045434
returns repo with all nil's.
Actually session returns 401 with description:
Can't realize, how to do authentification the right way