Skip to content

Commit

Permalink
Get GitHub ID from API
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo Nitami committed May 8, 2017
1 parent 9723cd2 commit 2e63a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ func main() {

client := github.NewClient(tc)
options := github.ListOptions{Page: 1, PerPage: 50}
events, _, err := client.Activity.ListEventsPerformedByUser(oauth2.NoContext, "rnitame", false, &options)
user, _, err := client.Users.Get(oauth2.NoContext, "")
events, _, err := client.Activity.ListEventsPerformedByUser(oauth2.NoContext, user.GetLogin(), false, &options)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 2e63a9c

Please sign in to comment.