Update README.md

Added API example