Go to file
Steven Polley 9fdb1641d9 Added OrganizationType
Added Metadata
2018-07-22 01:45:09 -06:00
itglue Added OrganizationType 2018-07-22 01:45:09 -06:00
.gitignore Added error handling 2018-07-22 01:41:33 -06:00
LICENSE Initial commit 2018-06-26 16:36:40 -06:00
README.md Update readme - import paths 2018-07-02 16:16:49 -06:00

README.md

go-itg

IT Glue API Structs + Receivers for the Go

This is nowhere near complete, and at least for now, I will only be adding support the functionality required for use within my organization. Feel free to send a pull request if you'd like to contribute anything that's missing.

Installation

go get deadbeef.codes/steven/go-itg

Usage

package main

import (
	"fmt"

	"deadbeef.codes/steven/go-itg/itglue"
)

func main() {
	itgAPI := itglue.NewITGAPI("ITG.XXXXXXXXXXXXX555555YOURAPIDKEYHERE2222222222222222XXXXXX")
	fmt.Println((*itgAPI).GetOrganizationByID(1234242).Data.Attributes.Name)                     //Returns the name of the Organization with ID 1234242
	fmt.Println((*itgAPI).GetOrganizationByName("test Org Inc.").Data[0].Attributes.Description) //Returns the description of the Organization with Name "Test Org Inc."

}