@inweb/client
    Preparing search index...

    Class SharedLink

    Provides properties and methods for obtaining information about a file shared link.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    headers: HeadersInit

    Endpoint-specific HTTP headers for the GET, POST, PUT and DELETE requests. You can add custom headers at any time.

    path: string

    Endpoint API path relative to the REST API server URL.

    Accessors

    • get createdAt(): string

      Shared link creation time (UTC) in the format specified in ISO 8601.

      Returns string

    • get token(): string

      Unique shared link token.

      Returns string

    • get url(): string

      URL to open shared file in the viewer.

      Returns string

    Methods

    • Reloads shared link data from the server.

      Returns Promise<SharedLink>

    • Deletes a shared link from the server.

      Returns Promise<any>

      Returns the raw data of a deleted shared link. For more information, see Open Cloud SharedLinks API.

    • Saves shared link properties changes to the server. Call this method to update shared link data on the server after any property changes.

      Returns Promise<SharedLink>