Update ApiClient.php

Make create methods object paramater by reference.
Now you can use getId(), afterwards, on the passed object.