VN
Size: a a a
VN
АК
VN
VN
АК
search()
?VN
search()
?AG
body = newXMLNode("ApiRequest", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"')
newXMLNode("ApiKey", "xxxx", parent=body)
newXMLNode("TableName", "digest", parent=body)
post_tables <- POST(url = "https://api6.esv2.com/v2/Api/DataTablesGetData",
body,
verbose())
АК
body = newXMLNode("ApiRequest", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"')
newXMLNode("ApiKey", "xxxx", parent=body)
newXMLNode("TableName", "digest", parent=body)
post_tables <- POST(url = "https://api6.esv2.com/v2/Api/DataTablesGetData",
body,
verbose())
character
загони свой XML.AG
character
загони свой XML.АК
toString
для пакета XML. #RTFM.AG
toString
для пакета XML. #RTFM.АК
> saveXML(body)
[1] "<ApiRequest>xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"<ApiKey>xxxx</ApiKey><TableName>digest</TableName></ApiRequest>"
AG
> saveXML(body)
[1] "<ApiRequest>xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"<ApiKey>xxxx</ApiKey><TableName>digest</TableName></ApiRequest>"
typeof(body)
[1] "externalptr"
АК
typeof(body)
[1] "externalptr"
typeof
, а class
смотри, по ним ведь поиск метода идёт.АК
typeof(body)
[1] "externalptr"
saveXML
отдаст тебе character
.AG
saveXML
отдаст тебе character
.> saveXML(body)
[1] "<ApiRequest>xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"<ApiKey>xxxx</ApiKey><TableName>digest</TableName></ApiRequest>"
> class(body)
[1] "XMLInternalElementNode" "XMLInternalNode" "XMLAbstractNode"
АК
> saveXML(body)
[1] "<ApiRequest>xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"<ApiKey>xxxx</ApiKey><TableName>digest</TableName></ApiRequest>"
> class(body)
[1] "XMLInternalElementNode" "XMLInternalNode" "XMLAbstractNode"
saveXML(body)
в переменную сохрани и будет тебе счастье 😋AG
saveXML(body)
в переменную сохрани и будет тебе счастье 😋AG
saveXML(body)
в переменную сохрани и будет тебе счастье 😋post_tables <- POST(url = "https://api6.esv2.com/v2/Api/DataTablesGetData",
content_type("text/xml"),
body,
verbose())
АК
post_tables <- POST(url = "https://api6.esv2.com/v2/Api/DataTablesGetData",
content_type("text/xml"),
body,
verbose())
body = body
. Точки там интерпретируются вот так:...#RTFM, в общем.
Further named parameters, such as query, path, etc, passed on to modify_url(). Unnamed parameters will be combined with config().