API - Basic API calls

@anvk Can you tell me how to use the generic function to make this work?