users

package
Version: v0.0.0-...-c4bda31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2012 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package "users" implements a users github api client.

You need to create a github client and use it to create a new users github client.

As an examples:

ghc, err := ghclient.NewGithubClient(*username, *password,
                                     ghclient.AUTH_USER_PASSWORD)
ghusersc := ghusers.NewUsers(ghc)
res, err := ghusersc.GetUserInfo(*userinfo)
jr, err := res.Json()

fmt.Printf("JSON: %v\nHTTP REPLY: %v\nERROR: %v\n", jr, res.RawHttpResponse, err)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users struct {
	*ghclient.GithubClient
}

Users is a simplified github users api client.

func NewUsers

func NewUsers(ghc *ghclient.GithubClient) *Users

create a new github Users client from an existent GithubClient

func (*Users) GetAuthenticatedUserInfo

func (ghc *Users) GetAuthenticatedUserInfo() (res *ghclient.GithubResult, err error)

Request the current autenticated user info. It returns a GithubResult and an error.

func (*Users) GetUserInfo

func (ghc *Users) GetUserInfo(username string) (res *ghclient.GithubResult, err error)

Request github user info about a defined username. It returns a GithubResult and an error.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL