entanet/rest-now

A simple service-now rest client

Maintainers

Details

github.com/Entanet/rest-now

Source

Installs: 2 494

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 12

Forks: 4

3.0.0 2024-10-21 13:39 UTC

README

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