add the api call method