From 60dc60314e0c63b79993384d616442b590821908 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Fri, 30 Aug 2013 15:06:40 +0900 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 57716d4..a08e304 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ organizations for user "willnorris": ```go client := github.NewClient(nil) -orgs, err := client.Organizations.List("willnorris", nil) +orgs, _, err := client.Organizations.List("willnorris", nil) ``` Some API methods have optional parameters that can be passed. For example, @@ -32,7 +32,7 @@ updated: ```go client := github.NewClient(nil) opt := &github.RepositoryListByOrgOptions{Sort: "updated"} -repos, err := client.Repositories.ListByOrg("github", opt) +repos, _, err := client.Repositories.ListByOrg("github", opt) ``` The go-github library does not directly handle authentication. Instead, when @@ -50,7 +50,7 @@ t := &oauth.Transport{ client := github.NewClient(t.Client()) // list all repositories for the authenticated user -repos, err := client.Repositories.List("", nil) +repos, _, err := client.Repositories.List("", nil) ``` See the [goauth2 docs][] for complete instructions on using that library.