Skip to content

michaeldcanady/servicenow-sdk-go

Folders and files

NameName
Last commit message
Last commit date
Feb 20, 2025
Mar 8, 2025
Mar 3, 2025
Feb 7, 2024
Mar 9, 2024
Dec 21, 2023
Mar 8, 2025
Feb 28, 2025
Mar 7, 2024
Mar 8, 2025
Oct 6, 2023
Jan 2, 2024
Mar 2, 2024
Aug 13, 2023
Mar 3, 2024
Mar 9, 2024
Mar 9, 2024
Mar 8, 2025
Mar 8, 2025
Nov 11, 2023
Mar 25, 2025
Mar 25, 2025
Mar 3, 2025
Nov 5, 2023
Nov 5, 2023
Mar 3, 2025
Mar 3, 2025
Mar 8, 2025
Mar 3, 2025
Mar 4, 2025
Mar 3, 2025
Mar 3, 2025
Mar 8, 2025

Repository files navigation

ServiceNow SDK for Go

GitHub go.mod Go version GoDoc GitHub release (latest by date) GitHub issues GitHub Code Climate codecov

A Service-Now API client enabling Go programs to interact with Service-Now in a simple and uniform way

servicenow-sdk-go

Supported Service-Now APIs

API Status Issues
Account ✖️
ActivitySubscriptions ✖️
Agent Client Collector ✖️
Aggregate ✖️
AI Search External User Mapping ✖️
Alarm Management Open ✖️
Application Service ✖️
Appointment ✖️
Attachment ♻️ Attachment API Issues
Advanced Work Assignment (AWA) Agent ✖️
AWA Assignment ✖️
AWA Routing ✖️
Batch ✖️
Case ✖️
Custom Chat Chatbot Interoperability Framework (CCCIF) Media Resource ✖️
CdmApplicationsApi ✖️
CdmChangesetsApi ✖️
CdmEditorApi ✖️
CdmPoliciesApi ✖️
Tables ✔️ Table API Issues

Emoji Meaning
✔️ Supported
🆕 Preview
♻️ In progress
✖️ Not supported

1. Installation

Install latest

go get github.com/michaeldcanady/servicenow-sdk-go

or

Install specific version

go get github.com/michaeldcanady/servicenow-sdk-go@version

2. Getting Started

2.1 Create an AuthenticationProvider object

Create a credential object.

import (
    "github.com/michaeldcanady/servicenow-sdk-go/credentials"
)

cred := credentials.NewUsernamePasswordCredential("username", "password")

2.2 Get a ServiceNow Client and Adapter object

Create a client object.

import (
    servicenowsdkgo "github.com/michaeldcanady/servicenow-sdk-go"
)

client := servicenowsdkgo.NewServiceNowClient(cred, "instance")

2.3 Get query parameters

Build query parameter object.

import (
    "github.com/michaeldcanady/servicenow-sdk-go/table-api"
)

params := &tableapi.TableRequestBuilderGetQueryParameters{
        Limit: int32(1),
    }

2.4 Build request for table

Formulate request and provide parameters.

records, err := client.Now().Table("table name").Get(params)
if err != nil {
    panic(err)
}

About

A Service-Now API client enabling Go programs to interact with Service-Now in a simple and uniform way

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 5