get_mercadolibre_authorization_code: Get Mercado Libre authorization Code

Description Usage Arguments Examples

View source: R/authenticate.R

Description

This function creates a Mercado Libre access token.

Usage

1
2
3
4
5
get_mercadolibre_authorization_code(
  app_id = Sys.getenv("MELI_APP_ID"),
  client_secret = Sys.getenv("MELI_SECRET_KEY"),
  scope = scopes
)

Arguments

app_id

Defaults to System Environment variable "MELI_APP_ID"

client_secret

Defaults to System Envioronment variable "MELI_SECRET_KEY"

scope

Space delimited string of Mercado Libre scopes, found here: https://developers.mercadolibre.com.ar/es_ar/autenticacion-y-autorizacion#Obten-tu-access-token. All scopes are selected by default. Should match your app's enabled scopes.

Examples

1
2
3
4
## Not run: 
get_mercadolibre_authorization_code()

## End(Not run)

njcorona/mercadolibreR documentation built on July 19, 2020, 3:21 p.m.