API client for OSPy in AngularJS