You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Polley 4d397b874c testing jflect... this looks promising 1 year ago
generate-structs testing jflect... this looks promising 1 year ago
itglue Begin work on generate-structs for flexible assets 1 year ago
.gitignore git ignore 1 year ago
LICENSE Initial commit 1 year ago
README.md Update example 1 year ago

README.md

go-itg

IT Glue API Structs + Methods 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"
	"log"

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

func main() {
	fmt.Println("Example IT Glue Application")
	itg := itglue.NewITGAPI("ITG.XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXX")

	nd, err := itg.GetOrganizationByName("Next Digital Inc.") //Returns an organization list
	if err != nil {
		log.Fatalf("could not get nd: %s", err)
	}
	log.Printf("%s - %s\n", nd.Data[0].ID, nd.Data[0].Attributes.Name)

}