acled_auth: Authenticate a request via ACLED API OAuth endpoint.

View source: R/acled_auth.R

acled_authR Documentation

Authenticate a request via ACLED API OAuth endpoint.

Description

Pings the ACLED API token endpoint for authentication using email and password.

Usage

acled_auth(req, username, password = NULL)

Arguments

req

An ACLED API request.

username

Email associated with ACLED account.

password

User password associated with ACLED account.

Value

Returns a modified HTTP request that will use OAuth for the ACLED API.

See Also

ACLED API Access guide https://acleddata.com/api-documentation/getting-started

Other API and Access: acled_access(), acled_api(), acled_deletions_api(), acled_update()

Examples

## Not run: 
acled_auth(req, email, password)

## End(Not run)

acledR documentation built on Sept. 9, 2025, 5:38 p.m.