Hierarchy

  • TeamsKlaxon

Constructors

  • Example

    const klaxon = new TeamsKlaxon('https://trten.webhook.office.com/...');
    

    Parameters

    Returns TeamsKlaxon

Properties

_webhook: string

Methods

  • Make an adaptive card.

    Example

    klaxon.makeCard([
    Elements.TextBlock('Hello _world_!'),
    ]);

    Parameters

    Returns void

  • Private

    Returns undefined | Message

  • Verify a card is valid.

    Example

    klaxon.makeCard([
    Elements.TextBlock('Hello _world_!'),
    ]);

    klaxon.cardIsValid();
    // true

    Returns

    Returns boolean

  • Post your card to Teams.

    Example

    klaxon.makeCard([
    Elements.TextBlock('Hello _world_!'),
    ]);

    const response = await klaxon.postCard();

    response.status
    // 200

    Returns Promise<undefined | AxiosResponse<any, any>>

Generated using TypeDoc