Update readme.md

Add api example.