Set response file
Sets the file path to save the query result
- Parameters
- Advanced call ?
Function SetResponseFile(Val Value) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Value | --filepath | String | ✔ | File path |
Returns
DataProcessorObject.OPI_HTTPClient - This processor object
This method has no additional advanced call parameters.
1C:Enterprise/OneScript code example
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
TFN = GetTempFileName();
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetResponseFile(TFN) // <---
.ProcessRequest("GET")
.ReturnResponseFilename();
Result
"C:\\Users\\bayselonarrend\\AppData\\Local\\Temp\\1ztyamto.kz1"