Skip to content

goodwillaz/php-servicenow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP ServiceNow Client

A basic package built on Guzzle's Services libraries. This offers the following method calls:

  • listRecords($table, $parameters)
  • createRecord($table, $parameters)
  • getRecord($table, $sysId, $parameters)
  • updateRecord($table, $sysId, $parameters)
  • deleteRecord($table, $sysId);

Installation

$ composer require goodwillaz/servicenow

An OAuth client is required to be set up in ServiceNow before utilizing this client.

Usage

use ServiceNow\ClientFactory;

$instance = 'foo';
$auth = [
    'client_id' => 'oauth-client-id-from-servicenow',
    'client_secret' => 'oauth-secret-from-servicenow',
    'username' => 'api-username',
    'password' => 'api-user-password'
];

$client = new ClientFactory($instance, $auth);

vardump($client->listRecords('incident'));

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages