add api command
add api demo
Merge pull request #11 from miraclesu/apiapp

add api command
an example for api application
Merge pull request #12 from miraclesu/apiapp

an example for api application