Generalize how API calls are done, add getUserData call

Test Plan:
- Test out the new API, after logging in