Name: go-circleci
Owner: Clever
Description: Go library for interacting with CircleCI
Forked from: jszwedko/go-circleci
Created: 2017-04-27 19:26:48.0
Updated: 2017-04-27 19:26:50.0
Pushed: 2017-04-27 19:36:31.0
Homepage: null
Size: 33
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Go library for interacting with CircleCI's API. Supports all current API endpoints allowing you do do things like:
The CircleCI HTTP API response schemas are not well documented so please file an issue if you run into something that doesn't match up.
Example usage:
age main
rt (
"fmt"
"github.com/jszwedko/go-circleci"
main() {
client := &circleci.Client{Token: "YOUR TOKEN"} // Token not required to query info for public projects
builds, _ := client.ListRecentBuildsForProject("jszwedko", "circleci-cli", "master", "", -1, 0)
for _, build := range builds {
fmt.Printf("%d: %s\n", build.BuildNum, build.Status)
}
For the CLI that uses this library (or to see more example usages), please see circleci-cli.
Currently in alpha, so the library API may change – please use your favorite Go dependency management solution.
See GoDoc for API usage.
Feature requests and issues welcome!