refactor api helpers
Merge pull request #13 from hirakiuc/refactor_api_helpers

refactor api helpers