Add function to call API method

- Add get_api and post_api to call custom API (RPC) method
Merge pull request #2 from nathando/master

Add function to call API method