acyrsa_login: Log-in Method

Description Usage Arguments Value Accesors Note Examples

View source: R/functions.R

Description

It is use to Log-in and obtained a valid token tthat then should be used in all requests to the API.

Usage

1
acyrsa_login(user, pass, env)

Arguments

user

String. Mandatory User Name

pass

String. Mandatory Password

env

String. Mandatory Wich environment are you going to connect:

  • demoapi - for testing

  • api - for production

Value

Creates an 'acyRsaConnection' S4 Object with a token and a base_url.

Accesors

You can use accesors to get information about the Object by using:

Note

The token is valid only for a day.

Examples

1
2
3
4
## Not run: 
conn <- acyrsa_login(user = "asd", pass = "xxx", env = "api")

## End(Not run)

augustohassel/acyRsa documentation built on March 18, 2021, 2:34 p.m.