/greenhouse

Go client for the Greenhouse.io API

Primary LanguageGoMIT LicenseMIT

Greenhouse.io Go Client

GoDoc Go Report Card Build Status

Go client for the Greenhouse.io API as defined at: https://developers.greenhouse.io/job-board.html

Installation

go get -u github.com/escholtz/greenhouse

Usage

package main

import (
	"fmt"
	"os"

	"github.com/escholtz/greenhouse"
)

func main() {
	client := greenhouse.NewClient()

	// Get the company name
	board, err := client.Board("github")
	if err != nil {
		panic(err)
	}
	fmt.Println(board.Name)

	// Get all job openings including descriptions
	jobs, err := client.Jobs("github")
	if err != nil {
		panic(err)
	}
	for _, j := range jobs.Jobs {
		fmt.Println(j.Title, j.Location.Name)
	}
}