add a method to call custom API functions
Merge pull request #8 from lracicot/master

add a method to call custom API functions