Learn R Programming

tuber (version 2.0.0)

build_httr2_request: 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)

Value

An httr2 request object ready for method-specific modifications

Arguments

path

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

query

Named list of query parameters