update api version
Merge pull request #7 from liufengyun/fix-api-version

Update API version and make it configurable.