When I write about working with APIs, I often get back questions about authenticating with OAuth. Today, I wanted to show you how to use OAuth with fetch() in vanilla jS. An example To help this all click, let’s work with a real example: the Petfinder API. To work along with me, you’ll first need to create an account and get an API key and secret. The Petfinder API can be used to get a list of adoptable pets for a specific shelter (or by animal type or breed).
Welcome to the DPLA API Codex! This is where you can find authoritative documentation for the DPLA API and resources you can use to make the most of it. We’re happy to have you. (Wondering why we built an API in the first place? Check out our philosophy.) What now? If you’ve never played (or …