Skip to content

Commit

Permalink
Merge pull request #11 from rnitame/feature-get_id
Browse files Browse the repository at this point in the history
GitHub の ID を認証済みユーザーの情報から取ってくる
  • Loading branch information
Ryo Nitami authored May 8, 2017
2 parents 9723cd2 + 2e63a9c commit 411fcd3
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 411fcd3

Please sign in to comment.