Demonstrates how to use token authentication with a JSON API.