api call by methode name