Attachment class This is a class used to define message attachments

Hierarchy

  • Client
    • Attachment

Constructors

Properties

attachmentGu: string
fileExtension: null | string
name: string

Methods

  • Fetches the attachment from synergy servers. Unfortunately, the api does not offer a URL path to the file

    Returns

    base64 string

    Description

    const base64 = await someAttachment.get();
    console.log(base64) // -> UEsDBBQABgAIAAAAIQCj77s...

    Returns Promise<string>

  • Type Parameters

    • T extends undefined | object

    Parameters

    • url: string
    • options: Partial<RequestOptions> = {}
    • preparse: ((xml: string) => string) = ...
        • (xml: string): string
        • Parameters

          • xml: string

          Returns string

    Returns Promise<T>

Generated using TypeDoc