/gosnow

Golang wrapper for the Servicenow REST API

Primary LanguageGoMIT LicenseMIT

gosnow

GitHub go.mod Go version GitHub Workflow Status GitHub release (latest by date) GitHub issues GitHub GitHub all releases

Current Ideas:

  • 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)

Contributing

Author

Michael Canady