trem_client_new.Rd
Create a new Tremendous API Client
trem_client_new(api_key = NULL, sandbox = TRUE)
api_key | API key from
tremendous.com. Can either pass in
here as a character string or set for repeated use with
|
---|---|
sandbox | Logical: |
An object of class 'tremClient' that contains the API Key and Environment information for easily performing Tremendous API requests.
if (FALSE) { # Create a client for testing API calls within the Sandbox environment. test_client <- trem_client_new(api_key = "TEST_YOUR-KEY-HERE", sandbox = TRUE) # Create a client for performing API calls within a production environment. # This client will be able to send actual money! prod_client <- trem_client_new(api_key = "PROD_YOUR-KEY-HERE", sandbox = FALSE) }