Include the module utils.
Add a new function getId.
Use a function postRequest.