How to get access_token for using chat?

This section of the documentation covers token acquisition: