Learn R Programming

ryandexdirect (version 3.6.2)

yadirCurrencyRates: Get currencies

Description

Exchange rates, currency parameters and restrictions.

Usage

yadirCurrencyRates(
     Login = getOption("ryandexdirect.user"), 
     AgencyAccount = getOption("ryandexdirect.agency_account"), 
     Token = NULL,
     TokenPath = yadirTokenPath())

Value

data frame with campaings names and parameters

Arguments

Login

Your Yandex Login

AgencyAccount

Your agency account login, if you get statistic from client account

TokenPath

Path to directory where you save credential data

Token

character or list object, your Yandex API Token, you can get this by function yadirGetToken or yadirAuth

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {
### Please choose another TokenPath to save the Login permanently.
# from storage tokrn
library(ryandexdirect)
cur <- yadirCurrencyRates(Login = "login" ,
                          TokenPath = tempdir())

# from auth object

aut <- yadirAuth(Login = "login", NewUser = TRUE, 
        TokenPath = tempdir())
cur2 <- yadirCurrencyRates(Login =  "login" ,
                           Token = aut)
}

Run the code above in your browser using DataLab