我正在尝试从 QBO 保存 PDF,但是我坚持这一点:如何让 IConsumerRequest 返回流而不是字符串?ReadBody 似乎只发送字符串而不是二进制数据......
IConsumerRequest conReq = oSession.Request();
conReq = conReq.Get().WithRawContentType("application/pdf");
string outURL = base_url + "invoice-document/v2/" + realmId + "/" + customerInvoicesWithinDateRange[0].Id.Value;
conReq = conReq.ForUrl(outURL);
conReq = conReq.SignWithToken();
string serviceResponse = conReq.ReadBody();
谢谢