Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. POST https://api.github.com/repos/mh-cbon/demotest/issues: 401 Bad credentials []
  2.  
  3. input := &github.IssueRequest{
  4. Title: &g.IssueTitle,
  5. Body: &body,
  6. }
  7.  
  8. ts := oauth2.StaticTokenSource(
  9. &oauth2.Token{AccessToken: g.Token},
  10. )
  11. tc := oauth2.NewClient(oauth2.NoContext, ts)
  12. client := github.NewClient(tc)
  13.  
  14. _, _, err = client.Issues.Create(g.Owner, g.Repo, input)
  15.  
  16. repo
  17. repo:status
  18. repo:repo_deployment
  19. repo:public_repo
  20. user
  21. user:email
  22. user:follow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement