Skip to contents

Create authentication credentials for Dynata API. https://developers.dynata.com/demand-api-reference/introduction/welcome

Usage

dynata_auth(production = TRUE)

Arguments

production

Defaults to TRUE. Whether to use production setup (TRUE) or not (FALSE). If FALSE, authorization is given only for the sandbox/test environment.

Value

A list containing creds (credentials specification) and API token.

Details

For dynata_auth you need to provide the following Global Variables into the .Renviron file:

  • DYNATA_SANDBOX_API_HOST

  • DYNATA_CLIENT_ID

  • DYNATA_USERNAME

  • DYNATA_API_PASSWORD

Examples

dynata_auth_prod <- dynata_auth(TRUE)