Skip to content

Entanet/rest-now

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Codacy Badge

Install via composer

composer require entanet/rest-now

Configuration

Configuration is done via the config class

$config = new \Now\Client\Config();

$config->base_uri = "https://instance-name.service-now.com";
$config->client_id = '0xx000xxx00';
$config->client_secret  = 'client_secret';
$config->username = "my.email@gmail.com";
$config->password = 'secret_password';

a second config class can be used to set decide if incremental retry is on, if so the http max retries and max delay in second values, however to ensure rest-now does not break, some default values have been included in the auth class in some CONST variables

http_client.incremental_retry_is_active
http_client.max_delay_between_retries_in_seconds
http_client.max_retries
...



### Authentication