There is no license information available for the latest version (15.3.0) of this package.

15.3.0 2019-06-19 21:48 UTC

README

This SDK allows you to quickly get up and running with your WebWiseUSA CRM integration.

Dependencies

GuzzleHTTP, PHP 7.1+

Prerequisites

A crm.webwiseusa.com account and API Key

Installation

composer require farfromboring/crm-sdk

Create an environment variable for the API key

WEBWISEUSA_CRM_API_KEY="enter_it_here"

Development/Sandbox

Just prepend your API key with "dev_" in order to enable sandbox mode.

Example:

WEBWISEUSA_CRM_API_KEY="dev_[api_key_here]"

Usage

A sample of the addUser method:

$user = new User();
$company = new Company();

$user->setFname('Bob');
$user->setLname('Jenkins');
$user->setEmail('bob@jenkins.com');

$company->setName('Bob Co.');

$user->setCompany($company);

//instantiate the sdk endpoint object 
$user_sdk = new CRM_SDK\Endpoints\UserEndpoint();

//an exception will be thrown if anything other than a 200 is returned
//the ResponseObjects\User\User object is returned on success
$new_user = $user_sdk->addUser($user);