Update README.md

Fixes errors in the Quitckstart sample code
I think the version I am currently using does not support `Endpoint.apply()`. I will upgrade to the latest version and make sure that the sample works before pushing a new commit. In that case, there is a trailing curly brace at the end of the code block that needs to be deleted.