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

Method createWriteUrlRequest

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

Source from the content-addressed store, hash-verified

576}
577
578func (c OrchestratorClient) createWriteUrlRequest(folderId int, bucketId int, path string) *network.HttpRequest {
579 uri := c.newUriBuilder("/odata/Buckets({bucketId})/UiPath.Server.Configuration.OData.GetWriteUri").
580 FormatPath("bucketId", bucketId).
581 AddQueryString("path", path).
582 Build()
583 header := http.Header{
584 "X-UiPath-OrganizationUnitId": {strconv.Itoa(folderId)},
585 }
586 return network.NewHttpGetRequest(uri, c.toAuthorization(c.token), header)
587}
588
589func (c OrchestratorClient) convertToRobotLogs(json getRobotLogsResponseJson) []RobotLog {
590 logs := []RobotLog{}

Callers 1

GetWriteUrlMethod · 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