A Service-Now API client enabling Go programs to interact with Service-Now in a simple and uniform way
API | Status | Issues |
---|---|---|
Account | ✖️ | |
ActivitySubscriptions | ✖️ | |
Agent Client Collector | ✖️ | |
Aggregate | ✖️ | |
AI Search External User Mapping | ✖️ | |
Alarm Management Open | ✖️ | |
Application Service | ✖️ | |
Appointment | ✖️ | |
Attachment | ♻️ | |
Advanced Work Assignment (AWA) Agent | ✖️ | |
AWA Assignment | ✖️ | |
AWA Routing | ✖️ | |
Batch | ♻️ | |
Case | ✖️ | |
Custom Chat Chatbot Interoperability Framework (CCCIF) Media Resource | ✖️ | |
CdmApplicationsApi | ✖️ | |
CdmChangesetsApi | ✖️ | |
CdmEditorApi | ✖️ | |
CdmPoliciesApi | ✖️ | |
Tables | ✔️ |
Emoji | Meaning |
---|---|
✔️ | Supported |
🆕 | Preview |
♻️ | In progress |
✖️ | Not supported |
Before you begin, ensure that you have the following:
You can install the ServiceNow SDK using the following commands:
go get github.com/michaeldcanady/servicenow-sdk-go
If you need a specific version, use the following command, replacing version
with the desired version:
go get github.com/michaeldcanady/servicenow-sdk-go@version
To authenticate with ServiceNow, create a credential object. Here's an example using username and password:
import (
"github.com/michaeldcanady/servicenow-sdk-go/credentials"
)
cred := credentials.NewUsernamePasswordCredential("username", "password")
Create a client object to interact with ServiceNow APIs:
import (
servicenowsdkgo "github.com/michaeldcanady/servicenow-sdk-go"
)
client, err := servicenowsdkgo.NewServiceNowClient2(cred, "instance")
if err != nil {
panic(err)
}
Choose the appropriate ServiceNow API SDK for your use case and start building your applications!
Select the submodule(s) that align with your requirements and start building your applications!