Update README.md

Added API code