A simple code for api client

I add a simple code for API client.