Use a REST API helper library to simplify code