MCPcopy Index your code
hub / github.com/google/go-github / ExampleUsersService_ListUserSocialAccounts

Function ExampleUsersService_ListUserSocialAccounts

github/examples_test.go:193–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func ExampleUsersService_ListUserSocialAccounts() {
194 client, err := github.NewClient()
195 if err != nil {
196 log.Fatalf("Error creating GitHub client: %v", err)
197 }
198 ctx := context.Background()
199 opts := &github.ListOptions{}
200 for {
201 accounts, resp, err := client.Users.ListUserSocialAccounts(ctx, "shreyjain13", opts)
202 if err != nil {
203 log.Fatalf("Error listing user social accounts: %v", err)
204 }
205 if resp.NextPage == 0 || len(accounts) == 0 {
206 break
207 }
208 opts.Page = resp.NextPage
209 }
210}

Callers

nothing calls this directly

Calls 2

NewClientFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…