// remembering the id, so we can use it for other operations echo 'id of the new project: ' . PHP_EOL; print_r($insertedId); echo PHP_EOL; /** * get one project, identified by its id: */ $getResonse = $Projects->get($insertedId); echo 'Got this as a result for the get Request: ' . PHP_EOL; print_r($getResonse); /** * to update the project, you can change the properties of the object and send it via the update function */ $receivedProject = $getResonse[0]; $receivedProject->name = 'updated projectname'; $updatedProject = $Projects->update($receivedProject); echo 'Got this as a result for the update Request: ' . PHP_EOL; print_r($updatedProject); /** * if you want to delete one project, you can identify it by id, or pass the project as parameter */ $deleteResponse = $Projects->delete($updatedProject); echo 'Got this as a result for the delete Request: ' . PHP_EOL; var_dump($deleteResponse); /** * if you try to get the deleted object now, you will receive an error: */ try { echo 'Trying to get a deleted project: ' . PHP_EOL; $Projects->get($updatedProject->id); } catch (\Productsup\Exceptions\ClientException $e) {