1.0.5 • Published 5 years ago

snow-api v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Service Now Api Module

Table of Contents

Introduction

This module provides service now api data for last 12 months in JSON format .

Installation

npm install snow-api

Environment Variables

Environment VariableRequired?
SNOW_USERNAMEYes
SNOW_PASSWORDYes
SNOW_URLYes
GROUP_NAMEYes

URL fromat

Your url format should be like https://URLNAME/api/now/table/{tablename}?sysparm_display_value=true&sysparm_query=sys_created_on>{dateparams}^assignment_group.name={groupname}&sysparm_fields={parameters} in which replace url name with specific url.

For example: SNOW_URL = https://servicenow.com/api/now/table/{tablename}?sysparm_display_value=true&sysparm_query=sys_created_on>${dateparams}^assignment_group.name=${groupname}&sysparm_fields=${parameters}

Usage

const snow = require('snow-api');
//tablename = provide table name though which you want to filter data
//paramters = provide parameters in list...example ["number","state","assigned_to","priority","severity"]
snow.snowApi(tablename,parameters);
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago