Viscocent
Viscocent

Reputation: 2064

GitHub API? getting team info

i am having trouble on using the github api using GET.

according to GitHub API: i should call:

https://api.github.com/teams/1

and i receive the ff json data:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3"
}

here is the link for the documentation: https://developer.github.com/v3/orgs/teams/#get-team

i cannot get the team info somehow.

Upvotes: 3

Views: 835

Answers (1)

VonC
VonC

Reputation: 1327384

If this depends on your being correctly authenticated, then putting an oauth2 is fine, since such a key can:

  • be obtained programmatically
    (like in this gist)

    curl -u 'your_user_name' -d '{"scopes":["gist"],"note":"gister script test"}' https://api.github.com/authorizations
    
  • be revoked.

Then this could work better:

https://api.github.com/teams/1?access_token=OAUTH-TOKEN

Upvotes: 1

Related Questions