package
0.0.0-20160821062127-52e88a7b75a5
Repository: https://github.com/mpeter/sling.git
Documentation: pkg.go.dev

# README

Example API Client with Sling

Try the example Github API Client.

cd examples
go get .

List the public issues on the github.com/golang/go repository.

go run github.go

To list your public and private Github issues, pass your Github Access Token

go run github.go -access-token=xxx

or set the GITHUB_ACCESS_TOKEN environment variable.

For a complete Github API, see the excellent google/go-github package.

# Functions

NewClient returns a new Client.
NewIssueService returns a new IssueService.

# Structs

Client is a tiny Github client.
GithubError represents a Github API error response https://developer.github.com/v3/#client-errors.
Issue is a simplified Github issue https://developer.github.com/v3/issues/#response.
IssueListParams are the params for IssueService.List https://developer.github.com/v3/issues/#parameters.
IssueRequest is a simplified issue request https://developer.github.com/v3/issues/#create-an-issue.
IssueService provides methods for creating and reading issues.