setCurl: sets the default configuration for curl calls

Description Usage Arguments Examples

View source: R/setCurl.R

Description

The command stores the connection details into memory to be easier accessed by rejustify package.

Usage

1
2
3
4
5
6
setCurl(
  mainUrl = "https://api.rejustify.com",
  proxyUrl = getOption("rejustify.proxyUrl"),
  proxyPort = getOption("rejustify.proxyPort"),
  learn = getOption("rejustify.learn")
)

Arguments

mainUrl

Main address for rejustify API calls. Default is set to https://api.rejustify.com, but depending on the customer needs, the address may change.

proxyUrl

Address of the proxy server.

proxyPort

Port for communication with the proxy server.

learn

Enable AI learning in all API calls by setting learn=TRUE. You can also specify the learn option in the relevant functions directly.

Examples

1
2
#setting up connection through proxy
rejustify::setCurl(proxyUrl = "PROXY_ADDRESS", proxyPort = 8080)

rejustify/r-package documentation built on Nov. 7, 2021, 2:10 p.m.