cbr_get_body: Create body of html-request

View source: R/cbr.R

cbr_get_bodyR Documentation

Create body of html-request

Description

Create body of html-request

Usage

cbr_get_body(body, name)

Arguments

body

the body of html-request

name

the name of variable from https://cbr.ru/secinfo/secinfo.asmx

Value

XML-tree

Examples

body <- paste0(
  "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n
<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n
    <soap:Body>\n
      <AuctionsXML xmlns=\"http://web.cbr.ru/\">\n
        <DateFrom>2015-01-01</DateFrom>\n
        <DateTo>2015-06-01</DateTo>\n
      </AuctionsXML>\n
    </soap:Body>\n
</soap:Envelope>"
)
cbr_get_body(body, "AuctionsXML")

bdemeshev/cbr documentation built on Sept. 23, 2024, 8:48 a.m.