我了解Uber 产品端点( //Create a Json and convert it to String
JSONGenerator gen=JSON.createGenerator(true);
gen.writeStartObject();
gen.writeStringField('type', 'update');
gen.writeFieldName('credentials');
gen.writeStartObject();
gen.writeStringField('partnerUserID', 'userID');//Should be changed
gen.writeStringField('partnerUserSecret', 'token');//Should be changed
gen.writeEndObject();
gen.writeFieldName('inputSettings');
gen.writeStartObject();
gen.writeStringField('type', 'employees');
gen.writeStringField('policyID', 'ID');//the policyID corresponding to the policy which the employees will be added to;
gen.writeStringField('fileType', 'csv');
gen.writeEndObject();
gen.writeEndObject();
String requestJobDescription=gen.getAsString();
String boundary = '-----------------------------BoundaryjQjTqoyRD07HQCVD';
String header2 = '--'+boundary+'\n'+ 'Content-Disposition: form-data; name="data"; filename="1.csv"'+'\r\nContent-Type: application/octet-stream\r\n\r\n';
String header1 = '--'+boundary+'\n Content-Disposition: form-data; name="requestJobDescription" \r\n\r\n'+requestJobDescription+'\r\n';
String footer = '--'+boundary+'--';
String body=header1+header2+CSVString+'\r\n'+footer;//the CSVString is like 'EmployeeEmail,ManagerEmail,Admin\n'+'asidoj@qwe.com,qwdmka@ee.com,FALSE'
HttpRequest req = new HttpRequest();
req.setHeader('Content-Type','multipart/form-data; boundary='+boundary);
req.setMethod('POST');
req.setEndpoint('https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations');
req.setBody(body);
req.setTimeout(120000);
Http http = new Http();
HTTPResponse res = http.send(req);
)不会返回UberPOOL和UberFRESH等实验性或促销产品。
价格估算端点(GET /v1/products
)是否会返回那些实验/促销产品的价格估算值?