The User API


User information


A returned user consists of the following information:

User ID      [id]
The unique string that identifies a user.
Email Address      [emailAddress]
The email address of the user.
First Name      [firstName]
The current status of the ticket.
Last Name      [lastName]
The ID of who the ticket is assigned to, if it is assigned.
User Type      [type]
The type of user.
Company Name      [company]
Company Name of user if exists.
Company URL      [url]
Company URL of user if exists.
Phone Number      [phone]
Phone number of user if exists.
Address      [address]
Address of user if exists.
Profile URL      [profileURL]
URL of profile image if exists.

This method returns a single user.


You will need to use the required information, and may need to use the optional information below.


Optional Information:

Required Information:



Example 1:

https://rhinosupport.com/API/User/?apiCode=[apiCode]&id=[id]

Example 2:

https://rhinosupport.com/API/User/?apiCode=[apiCode]&emailAddress=[emailAddress]&showNotes&responseType=json

PHP Curl Example
<?php $request = curl_init('https://billing.rhinosupport.com/API/User/?apiCode=[apiCode]&id=[id]');
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($request);
curl_close($request);
echo $result;
?>


 

This method lets you create a new user.


You will need to use the required information, and may need to use the optional information below.


Optional Information:

Required Information:



PHP Curl Example 1:

<?php $request = curl_init ('https://www.rhinosupport.com/API/User/');
$postFields = array();
$postFields['apiCode'] = '[apiCode]';
$postFields['emailAddress'] = '[emailAddress]';


curl_setopt ($request, CURLOPT_POST, true);
curl_setopt ($request, CURLOPT_POSTFIELDS, http_build_query($postFields));
curl_setopt ($request, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec ($request);
curl_close ($request);
echo $result;
?>


PHP Curl Example 2:

<?php $request = curl_init ('https://www.rhinosupport.com/API/User/');
$postFields = array();
$postFields['apiCode'] = '[apiCode]';
$postFields['emailAddress'] = '[emailAddress]';
$postFields['firstName'] = '[firstName]';
$postFields['lastName'] = '[lastName]';
$postFields['userType'] = '[userType]';
$postFields['companyName'] = '[companyName]';
$postFields['companyURL'] = '[companyURL]';
$postFields['phoneNumber'] = '[phoneNumber]';
$postFields['address'] = '[address]';
$postFields['userNote'] = '[userNote]';


curl_setopt ($request, CURLOPT_POST, true);
curl_setopt ($request, CURLOPT_POSTFIELDS, http_build_query($postFields));
curl_setopt ($request, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec ($request);
curl_close ($request);
echo $result;
?>


 

This method lets you update an existing ticket.


You will need to use the required information, and may need to use the optional information below.


Optional Information:

Required Information:



PHP Curl Example 1:

<?php $request = curl_init ('https://www.rhinosupport.com/API/User/');
$postFields = array();
$postFields['apiCode'] = '[apiCode]';
$postFields['id'] = '[id]';


curl_setopt ($request, CURLOPT_POST, true);
curl_setopt ($request, CURLOPT_POSTFIELDS, http_build_query($postFields));
curl_setopt ($request, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec ($request);
curl_close ($request);
echo $result;
?>


PHP Curl Example 2:

<?php $request = curl_init ('https://www.rhinosupport.com/API/User/');
$postFields = array();
$postFields['apiCode'] = '[apiCode]';
$postFields['id'] = '[id]';
$postFields['emailAddress'] = '[emailAddress]';
$postFields['firstName'] = '[firstName]';
$postFields['lastName'] = '[lastName]';
$postFields['userType'] = '[userType]';
$postFields['companyName'] = '[companyName]';
$postFields['companyURL'] = '[companyURL]';
$postFields['phoneNumber'] = '[phoneNumber]';
$postFields['address'] = '[address]';


curl_setopt ($request, CURLOPT_POST, true);
curl_setopt ($request, CURLOPT_POSTFIELDS, http_build_query($postFields));
curl_setopt ($request, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec ($request);
curl_close ($request);
echo $result;
?>


 

Account Options


×  
×