added basic functionality to call pivotal endpoint