echo "ID OF THE CREATED RESOURCE =>>> " . $resourceId . "<br/>";
 echo "<br/>GETTING A RESOURCE BY ID<br/>";
 $response = $api->getResource($resourceId);
 echo print_r($response, true) . "<br/>";
 echo "RESOURCE =>>> " . print_r($response->response->resource, true) . "<br/>";
 echo "<br/>UPDATING A RESOURCE<br/>";
 $response = $api->editResource($resourceId, "resourceNew", 8);
 echo print_r($response, true) . "<br/>";
 echo "UPDATED RESOURCE =>>> " . print_r($response->response->resource, true) . "<br/>";
 echo "<br/>GETTING A LIST OF RESOURCES<br/>";
 // gets a list of resources descending (10 records starting from 'offset' parameter)
 $response = $api->getResources(0);
 echo print_r($response, true) . "<br/>";
 echo "RESOURCES =>>> " . print_r($response->response->resources, true) . "<br/>";
 echo "<br/>GETTING A QUANTITY OF RESOURCES<br/>";
 $response = $api->getResourcesQuantity();
 echo print_r($response, true) . "<br/>";
 $quantity = $response->response->quantity;
 echo "RESOURCES QUANTITY =>>> " . $quantity . "<br/>";
 echo "<br/>CREATING A USER<br/>";
 $response = $api->addUser("login", "*****@*****.**", 12345678912, "pwd", null, null, true);
 echo print_r($response, true) . "<br/>";
 $userId = $response->response->id;
 echo "ID OF THE CREATED USER =>>> " . $userId . "<br/>";
 echo "<br/>ASSIGNING USER WITH ID = " . $userId . " TO RESOURCE WITH ID = " . $resourceId . "<br/>";
 // assigns user to resource
 $response = $api->assignUserToResource($resourceId, $userId);
 echo print_r($response, true) . "<br/>";
 echo "<br/>UNASSIGNING USER WITH ID = " . $userId . " FROM RESOURCE WITH ID = " . $resourceId . "<br/>";
 // unassigns user from resource
 $response = $api->unassignUserFromResource($resourceId, $userId);