Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active August 29, 2015 13:57
Show Gist options
  • Save fideloper/9604504 to your computer and use it in GitHub Desktop.
Save fideloper/9604504 to your computer and use it in GitHub Desktop.
<?php
include('HelpSpotAPI.php');
$hsapi = new HelpSpotAPI(array(
'helpSpotApiURL' => 'http://.../api/index.php', // Your credentials as normal
'username' => 'todd@company.com',
'password' => 'pass'
));
// Your normal activites here to bulid the $helpspot_request array
$result = $hsapi->privateRequestCreate($helpspot_request);
if( $result == false )
{
echo $hsapi->errors;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment