- Remove need for "resource"
- Build out Tables API
GoSnow is a Golang wrapper for the Service Now API.
Install gosnow
go get github.com/michaeldcanady/gosnow
Creating a client instance
client, _ := gosnow.New(username, password, instance)
Create table instance
CSTable, _ := client.Table("TableName")
Get a table value
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Get(query, )
Update a table value
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Update(query, 1, 0, true, nil)
Delete a table value
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Delete(query)
Create a table value
respose, _ := CSTable.Create(query)
Michael Canady