authenticate: Authenticate with the IUROPA API

View source: R/authentication_functions.R

authenticateR Documentation

Authenticate with the IUROPA API

Description

This function allows users with a IUROPA account to authenticate with the IUROPA API in order to access components of the IUROPA CJEU Database that have not yet been publicly released. This function creates a session. You need to provide your IUROPA username and password to authenticate.

Usage

authenticate(username, password)

Arguments

username

A string. Your IUROPA username.

password

A string. Your IUROPA password.

Value

This function returns an object of class iuropa_session that contains the credentials necessary to access password-protected data from the IUROPA API. You can pass this session object into any function that takes a session argument. If your session times out, you will need to run this function again to create a new session. You can have multiple active sessions at the same time.

Examples

## Not run: 
session <- authenticate(
  username = "USERNAME",
  password = "PASSWORD"
)
## End(Not run)


jfjelstul/iuropa documentation built on July 25, 2024, 4:11 p.m.