Working with APIs and writing web clients can be a tricky subject. Different APIs have different types of authorization, authentication, and protocols. We'll explore the http.Client struct object, working with OAuth2 clients and long-term token storage, and finish off with GRPC with an additional REST interface.
By the end of this chapter, you should have an idea of how to interface with third-party or in-house APIs and have some patterns for common operations, such as async requests to APIs.