Add request parameter to API

Checks if 2nd param is function or object => selects param and success callback