Skip to content

Latest commit

 

History

History
176 lines (111 loc) · 5.79 KB

sharedlinksweblinks.md

File metadata and controls

176 lines (111 loc) · 5.79 KB

SharedLinksWebLinksManager

Find web link for shared link

Returns the web link represented by a shared link.

A shared web link can be represented by a shared link, which can originate within the current enterprise or within another.

This endpoint allows an application to retrieve information about a shared web link when only given a shared link.

This operation is performed by calling function findWebLinkForSharedLink.

See the endpoint docs at API Reference.

userClient.getSharedLinksWebLinks().findWebLinkForSharedLink(new FindWebLinkForSharedLinkQueryParams(), new FindWebLinkForSharedLinkHeaders(String.join("", "shared_link=", webLinkFromApi.getSharedLink().getUrl(), "&shared_link_password=Secret123@")))

Arguments

  • queryParams FindWebLinkForSharedLinkQueryParams
    • Query parameters of findWebLinkForSharedLink method
  • headers FindWebLinkForSharedLinkHeaders
    • Headers of findWebLinkForSharedLink method

Returns

This function returns a value of type WebLink.

Returns a full web link resource if the shared link is valid and the user has access to it.

Get shared link for web link

Gets the information for a shared link on a web link.

This operation is performed by calling function getSharedLinkForWebLink.

See the endpoint docs at API Reference.

client.getSharedLinksWebLinks().getSharedLinkForWebLink(webLinkId, new GetSharedLinkForWebLinkQueryParams("shared_link"))

Arguments

  • webLinkId String
    • The ID of the web link. Example: "12345"
  • queryParams GetSharedLinkForWebLinkQueryParams
    • Query parameters of getSharedLinkForWebLink method
  • headers GetSharedLinkForWebLinkHeaders
    • Headers of getSharedLinkForWebLink method

Returns

This function returns a value of type WebLink.

Returns the base representation of a web link with the additional shared link information.

Add shared link to web link

Adds a shared link to a web link.

This operation is performed by calling function addShareLinkToWebLink.

See the endpoint docs at API Reference.

client.getSharedLinksWebLinks().addShareLinkToWebLink(webLinkId, new AddShareLinkToWebLinkRequestBody.AddShareLinkToWebLinkRequestBodyBuilder().sharedLink(new AddShareLinkToWebLinkRequestBodySharedLinkField.AddShareLinkToWebLinkRequestBodySharedLinkFieldBuilder().access(AddShareLinkToWebLinkRequestBodySharedLinkAccessField.OPEN).password("Secret123@").build()).build(), new AddShareLinkToWebLinkQueryParams("shared_link"))

Arguments

  • webLinkId String
    • The ID of the web link. Example: "12345"
  • requestBody AddShareLinkToWebLinkRequestBody
    • Request body of addShareLinkToWebLink method
  • queryParams AddShareLinkToWebLinkQueryParams
    • Query parameters of addShareLinkToWebLink method
  • headers AddShareLinkToWebLinkHeaders
    • Headers of addShareLinkToWebLink method

Returns

This function returns a value of type WebLink.

Returns the base representation of a web link with a new shared link attached.

Update shared link on web link

Updates a shared link on a web link.

This operation is performed by calling function updateSharedLinkOnWebLink.

See the endpoint docs at API Reference.

client.getSharedLinksWebLinks().updateSharedLinkOnWebLink(webLinkId, new UpdateSharedLinkOnWebLinkRequestBody.UpdateSharedLinkOnWebLinkRequestBodyBuilder().sharedLink(new UpdateSharedLinkOnWebLinkRequestBodySharedLinkField.UpdateSharedLinkOnWebLinkRequestBodySharedLinkFieldBuilder().access(UpdateSharedLinkOnWebLinkRequestBodySharedLinkAccessField.COLLABORATORS).build()).build(), new UpdateSharedLinkOnWebLinkQueryParams("shared_link"))

Arguments

  • webLinkId String
    • The ID of the web link. Example: "12345"
  • requestBody UpdateSharedLinkOnWebLinkRequestBody
    • Request body of updateSharedLinkOnWebLink method
  • queryParams UpdateSharedLinkOnWebLinkQueryParams
    • Query parameters of updateSharedLinkOnWebLink method
  • headers UpdateSharedLinkOnWebLinkHeaders
    • Headers of updateSharedLinkOnWebLink method

Returns

This function returns a value of type WebLink.

Returns a basic representation of the web link, with the updated shared link attached.

Remove shared link from web link

Removes a shared link from a web link.

This operation is performed by calling function removeSharedLinkFromWebLink.

See the endpoint docs at API Reference.

Currently we don't have an example for calling removeSharedLinkFromWebLink in integration tests

Arguments

  • webLinkId String
    • The ID of the web link. Example: "12345"
  • requestBody RemoveSharedLinkFromWebLinkRequestBody
    • Request body of removeSharedLinkFromWebLink method
  • queryParams RemoveSharedLinkFromWebLinkQueryParams
    • Query parameters of removeSharedLinkFromWebLink method
  • headers RemoveSharedLinkFromWebLinkHeaders
    • Headers of removeSharedLinkFromWebLink method

Returns

This function returns a value of type WebLink.

Returns a basic representation of a web link, with the shared link removed.