This post is a summary of common authentication protocols for API authentication with Apps Script.
I got fed up digging around in my Drive folder for old scripts to refresh my memory on the syntax, so I created this reference.
It’s not a comprehensive post on how to connect to APIs, instead, it’s a short summary of common protocols for easy reference.(If you’re new to APIs, start with my Apps Script API tutorial for beginners.)
This post looks at four different API authentication methods:
- No API authentication
- Requires API key in query string
- Requires API key in header
- OAuth2: Secure API authentication



