Skip to contents

Default API requests for forecasttools via httr2

Usage

.do_api_request(url, api_key_id, api_key_secret, api_key_creation_url = NULL)

Arguments

url

URL for the request to perform, passed as the url argument to httr2::request().

api_key_id

API key id to use when authenticating. If NULL or the empty string (""), treated as not provided.

api_key_secret

API key secret to use when authenticating. If NULL or the empty string (""), treated as not provided.

api_key_creation_url

The user will be warned if they fail to provide an api_key_id and api_key_secret. Provide this optional argument to direct the user to a website where they can create those credentials. See .warn_no_api_creds().