mikebywater / rest-now
A simple service-now rest client
0.1
2018-09-05 13:59 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- kamermans/guzzle-oauth2-subscriber: ^1.0
- league/climate: ^3.4
- monolog/monolog: ^1.23
Requires (Dev)
- phpunit/phpunit: ^7.3
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2025-03-23 11:31:06 UTC
README
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