Add function to call API method

- Add get_api and post_api to call custom API (RPC) method