yadirCurrencyRates: Get currencies

Description Usage Arguments Value Author(s) Examples

View source: R/yadirCurrencyRates.R

Description

Exchange rates, currency parameters and restrictions.

Usage

1
2
yadirCurrencyRates(Login = NULL, AgencyAccount = NULL, Token = NULL,
                 TokenPath = getwd())

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

Value

data frame with campaings names and parameters

Author(s)

Alexey Seleznev

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
### 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)

## End(Not run)

selesnow/ryandexdirect documentation built on Sept. 21, 2019, 2:23 p.m.