Created new file with the method call_api modified from the API documentation