Skip to content

Instantly share code, notes, and snippets.

View howardbaek's full-sized avatar
🎯
Focusing

Howard Baek howardbaek

🎯
Focusing
View GitHub Profile
@howardbaek
howardbaek / google-docs-api.R
Last active January 16, 2024 19:04
Extract list of attendees
library(httr2)
library(googlesheets4)
library(purrr)
# Function that creates OAuth client for Google APIs
google_client <- function() {
httr2::oauth_client(
id = "[Client ID]",
secret = "[Client secret]",
token_url = "https://oauth2.googleapis.com/token",