gosnow

module
v5.0.0-...-5d317ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: MIT

README

gosnow

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

Table of Contents

Current Ideas:

  • Remove need for "resource"
  • Build out Tables API

GoSnow is a Golang wrapper for the Service Now API.

Installation

go get github.com/michaeldcanady/gosnow

Usage

import "github.com/michaeldcanady/gosnow/v5/gosnow"

Examples

Creating a new 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

See CONTRIBUTORS.md for details.

Author

Michael Canady

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL