build_httr2_request: Build httr2 request for YouTube API

View source: R/tuber.R

build_httr2_requestR Documentation

Build httr2 request for YouTube API

Description

Internal helper to construct httr2 requests with consistent authentication and headers. Consolidates duplicated code across HTTP functions.

Usage

build_httr2_request(path, query)

Arguments

path

API endpoint path (e.g., "videos", "channels")

query

Named list of query parameters

Value

An httr2 request object ready for method-specific modifications


tuber documentation built on March 25, 2026, 9:08 a.m.