Clever/go-circleci

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

go-circleci

GoDoc Circle CI Go Report Card coverage

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!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.