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

add api command