(folderId int, bucketId int, path string)
| 542 | } |
| 543 | |
| 544 | func (c OrchestratorClient) createReadUrlRequest(folderId int, bucketId int, path string) *network.HttpRequest { |
| 545 | uri := c.newUriBuilder("/odata/Buckets({bucketId})/UiPath.Server.Configuration.OData.GetReadUri"). |
| 546 | FormatPath("bucketId", bucketId). |
| 547 | AddQueryString("path", path). |
| 548 | Build() |
| 549 | header := http.Header{ |
| 550 | "X-UiPath-OrganizationUnitId": {strconv.Itoa(folderId)}, |
| 551 | } |
| 552 | return network.NewHttpGetRequest(uri, c.toAuthorization(c.token), header) |
| 553 | } |
| 554 | |
| 555 | func (c OrchestratorClient) GetWriteUrl(folderId int, bucketId int, path string) (string, error) { |
| 556 | request := c.createWriteUrlRequest(folderId, bucketId, path) |
no test coverage detected