Skip to contents

This function takes the necessary parameters and creates a httr2 request to be performed this request can then be used in a second function, to actually return the data

Usage

build_comtrade_request(params, primary_token = NULL, verbose = F)

Arguments

params

a named vector of parameters for the comtrade request

primary_token

Your primary token. Default is to check in environment for stored token, if not passed through the `set_primary_comtrade_key` function

verbose

whether the function sends status updates to the console

Value

a httr2 request object