我正尝试从eBay POST API下载交易,随附eBay文档: eBay Documentation
我正在尝试运行以下脚本
ebay_url <-"https://publisher.ebaypartnernetwork.ebay.com/PublisherReportsTx"
user_name <- "xxxxxxx"
user_password <- "yyyyyyy"
pt <- "1"
tx_fmt <- "0"
submit_tx <-"Download"
from_date <- Sys.Date()-5
to_date <- Sys.Date()-1
## POST request Access Token
response <- POST(url = paste0(ebay_url,
"?user_name=",user_name,
"&user_password=",user_password,
"&start_date=",from_date,
"&end_date=",to_date,
"&pt=",pt,
"&tx_fmt=",tx_fmt,
"&submit_tx=",submit_tx),
content_type("application/x-www-form-urlencoded"))
我的状态为200,但我不知道如何从该呼叫中提取数据
通常我在GET调用中使用fromJSON或response [[“ content”]],但在这里不起作用,