$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); echo print_r($response, true) . "<br/>"; echo "<br/>CREATING A TOKEN<br/>"; $response = $api->addSoftwareToken(null, null, "MAIL", "*****@*****.**", "Mail token", null, null, null, null, null, null); echo print_r($response, true) . "<br/>"; $tokenId = $response->response->id; echo "ID OF THE CREATED TOKEN =>>> " . $tokenId . "<br/>"; echo "<br/>ASSIGNING TOKEN WITH ID = " . $tokenId . " TO RESOURCE WITH ID = " . $resourceId . "<br/>"; // assigns token to resource $response = $api->assignTokenToResource($resourceId, $tokenId); echo print_r($response, true) . "<br/>"; echo "<br/>UNASSIGNING TOKEN WITH ID = " . $tokenId . " FROM RESOURCE WITH ID = " . $resourceId . "<br/>";