2017 © Pedro Peláez
 

library helpspot

A PHP wrapper for the HelpSpot help desk api

image

helpspot/helpspot

A PHP wrapper for the HelpSpot help desk api

  • Friday, May 5, 2017
  • by ianlandsman
  • Repository
  • 2 Watchers
  • 2 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 19 % Grown

The README.md

HelpSpot Help Desk Software

This is the PHP SDK to the HelpSpot API. The SDK can work with both the public and private (staff) API., (*1)

Please read the full documentation for each API method here:, (*2)

Install

Via Composer, (*3)

``` bash $ composer require helpspot/helpspot, (*4)


## Loading If your framework handles autoloading you can simply use a **use** statement at the top of your php file to access HelpSpot. If it doesn't, you can load in HelpSpot with the require statement shown below plus using the **use** statement at the top of the file you want to access HelpSpot in. ```php require_once "vendor/autoload.php"; use helpspot\helpspot\helpspot; // Access HelpSpot in your functions and methods in this file

Usage

Authentication

You can authenticate either via an api key or a username and password combination. The API key is now the recommended authentication method and is the only method available if the HelpSpot instance uses SAML or LDAP authentication., (*5)

API Key:, (*6)

$helpspot = new helpspot('https://company.helpspot.com', '', '','apikey');

Username Password:, (*7)

$helpspot = new helpspot('https://company.helpspot.com', 'user@example.com', 'password');

Create a request using the private api

$helpspot = new helpspot('https://company.helpspot.com', 'user@example.com', 'password');

$helpspot->post('private.request.create', [
    'sEmail' => 'customer@company.com',
    'tNote' => 'testing',
    'xCategory' => 1
]);

Update a request using the private api

$helpspot = new helpspot('https://company.helpspot.com', 'user@example.com', 'password');

$helpspot->post('private.request.update', [
    'xRequest' => 12400,
    'fNoteType' => 1, // A public note
    'tNote' => 'Update the request with this note.',
]);

Get a request using the private api

$helpspot = new helpspot('https://company.helpspot.com', 'user@example.com', 'password');

$request = $helpspot->get('private.request.get', [
    'xRequest' => 12400
]);

echo $request->sEmail;

Create a request using the public api

$helpspot = new helpspot('https://company.helpspot.com');

$helpspot->post('request.create', [
    'sEmail' => 'customer@company.com',
    'tNote' => 'testing'
]);

Checking for errors

$helpspot = new helpspot('https://company.helpspot.com', 'user@example.com', 'password');

$request = $helpspot->get('private.request.get', [
    'xRequest' => 12400
]);

if($helpspot->hasError())
{
    foreach($helpspot->getErrors() as $error)
    {
        echo $error->id .' '. $error->description;
    }
}
else
{
    echo $request->sEmail;
}

Security

If you discover any security related issues, please email customer.service@userscape.com instead of using the issue tracker., (*8)

Credits

  • UserScape Inc.

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

05/05 2017

dev-master

9999999-dev https://github.com/helpspot/helpspot-php

A PHP wrapper for the HelpSpot help desk api

  Sources   Download

MIT

The Requires

 

helpspot help desk software ticket software

05/05 2017

1.0.3

1.0.3.0 https://github.com/helpspot/helpspot-php

A PHP wrapper for the HelpSpot help desk api

  Sources   Download

MIT

The Requires

 

helpspot help desk software ticket software

05/12 2016

1.0.2

1.0.2.0 https://github.com/helpspot/helpspot-php

A PHP wrapper for the HelpSpot help desk api

  Sources   Download

MIT

The Requires

 

helpspot help desk software ticket software

05/12 2016

1.0.1

1.0.1.0 https://github.com/helpspot/helpspot-php

A PHP wrapper for the HelpSpot help desk api

  Sources   Download

MIT

The Requires

 

helpspot help desk software ticket software

05/12 2016

1.0.0

1.0.0.0 https://github.com/helpspot/helpspot-php

A PHP wrapper for the HelpSpot help desk api

  Sources   Download

MIT

The Requires

 

helpspot help desk software ticket software