RIDLConfig | R Documentation |
RIDL Configuration
RIDL Configuration
RIDL Configuration allow to connect to a RIDL server and setup project where you can interact with the RIDL platform
data
all info in list.
new()
Create a new Configuration object.
RIDLConfig$new( site = "prod", token = NULL, key = NULL, user_agent = NULL, log_file = NULL, ... )
site
character, the RIDL instance, prod (production server), test (testing server)
token
character, the RIDL API token
key
character, the RIDL API key, is no longer recommended use the API
token
instead
user_agent
character value, User agent
log_file
character, the log file
...
curl options to pass to crul::HttpClient
A new Configuration object.
set_token()
Specify a RIDL API token
RIDLConfig$set_token(token)
token
a character with token
get_token()
Specify a RIDL API token
RIDLConfig$get_token()
a character, the RIDL API token
get_site_url()
Get the RIDL server URL in use
RIDLConfig$get_site_url()
the server URL
get_log_file()
Get the log file used by RIDL
RIDLConfig$get_log_file()
the log file
remoteclient()
Get the remoteclient currently used
RIDLConfig$remoteclient(...)
...
curl options to pass to crul::HttpClient
a crul::HttpClient
call_action()
Call the client to the RIDL API
RIDLConfig$call_action(action, ..., verb = "get")
action
a character
...
parameters for each verb used
verb
a character the verb used, post
, get
, put
or patch
list a with status code and results
read()
read and show Configuration object
RIDLConfig$read()
Configuration object
setup()
Setup Configuration object
RIDLConfig$setup( site = "prod", token = NULL, key = NULL, configuration = NULL, ... )
site
character, the RIDL instance, prod (production server), test (testing server)
token
a character value, the API token
key
a character value, the API key
configuration
a character
...
curl options to pass to crul::HttpClient
delete()
Delete a Configuration object
RIDLConfig$delete()
as_list()
Convert configuration to list
RIDLConfig$as_list()
configuration in list format
print()
Print Configuration object
RIDLConfig$print()
clone()
The objects of this class are cloneable with this method.
RIDLConfig$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
ridl_config()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.