mikebywater/rest-now

A simple service-now rest client

Installs: 158

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 4

Open Issues: 1

pkg:composer/mikebywater/rest-now

0.1 2018-09-05 13:59 UTC

This package is auto-updated.

Last update: 2025-09-23 12:32:34 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