trem_client_new {tremendousr} | R Documentation |
Create a new Tremendous API Client
Description
Create a new Tremendous API Client
Usage
trem_client_new(api_key = NULL, sandbox = TRUE)
Arguments
api_key |
API key from
tremendous.com. Can either pass in
here as a character string or set for repeated use with
|
sandbox |
Logical: |
Value
An object of class 'tremClient' that contains the API Key and Environment information for easily performing Tremendous API requests.
Examples
## Not run:
# 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)
## End(Not run)
[Package tremendousr version 1.0.0 Index]