R/0030_set_query.R

Defines functions set_query

Documented in set_query

#'-----------------
#' set_query 
#'-----------------
#' @title set_query 
#' @description sets up query to google api 
#' @details 
#' @return list
#' @export
set_query  <- function(part = NULL, fields = NULL, pageToken = NULL, l = NULL, api=NULL, ...){
 query  <- list(
              part=part,
              maxResults=l$maxResults,  
              # choice ONE:
              videoId = l$videoId,
              playlistId= l$playlistId,	
              fields = fields,
              key=api$api_key
    )  
}
jimrothstein/yt_api documentation built on Nov. 5, 2022, 8:05 p.m.