MCPcopy Create free account
hub / github.com/UiPath/uipathcli / createReadUrlRequest

Method createReadUrlRequest

utils/api/orchestrator_client.go:544–553  ·  view source on GitHub ↗
(folderId int, bucketId int, path string)

Source from the content-addressed store, hash-verified

542}
543
544func (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
555func (c OrchestratorClient) GetWriteUrl(folderId int, bucketId int, path string) (string, error) {
556 request := c.createWriteUrlRequest(folderId, bucketId, path)

Callers 1

GetReadUrlMethod · 0.95

Calls 6

newUriBuilderMethod · 0.95
toAuthorizationMethod · 0.95
NewHttpGetRequestFunction · 0.92
AddQueryStringMethod · 0.80
FormatPathMethod · 0.80
BuildMethod · 0.45

Tested by

no test coverage detected