To understand how to use Scanner, check out the Quickstart, which talks through the components of the system with a simple example.

Once you have a handle on the basics, you can checkout Interactive Jupyter Walkthrough, which provides a more full fledged walkthrough of using Scanner in a real application. Or you can take a look at the numerous Scanner tutorials available on github which provide examples of using key features of the Scanner API.