entanet / rest-now
A simple service-now rest client
3.0.0
2024-10-21 13:39 UTC
Requires
- guzzlehttp/guzzle: ^7.5
- kamermans/guzzle-oauth2-subscriber: ^1.0
- league/climate: ^3.4
Requires (Dev)
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.3
- dev-master
- 3.0.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0
- 1.0.0
- 0.7.2
- 0.7.1
- 0.7
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
- dev-SER-4040
- dev-SER-3562-B
- dev-SER-3562
- dev-SER-3368-2
- dev-SER-3368-ITSM-retry-failed-incident-creation-requests-from-portal
- dev-LB-CF-remove-monolog-1
- dev-feature/add-where-and
- dev-MARS-146-changes-to-find
- dev-MARS-205
This package is auto-updated.
Last update: 2024-11-21 13:48: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