Add code to actuallty perform API request when asked

Change-Id: Ieeec4db349389371fc40298f25cc2b5c613c3438