Options
All
  • Public
  • Public/Protected
  • All
Menu

@egomobile/api-messenger

Index

References

default

Renames and re-exports createApiMessenger

Type aliases

ApiMessageContentType

ApiMessageContentType: "text/html" | "text/markdown" | "text/mjml+xml" | "text/plain"

Valid values for an API message content type.

Functions

createApiMessenger

  • Creates a new API messenger client.

    example
    import createApiMessenger from '@egomobile/api-messenger'

    const messenger = createApiMessenger({
    baseURL: 'https://api.example.com/',
    auth: {
    clientId: '<YOUR-CLIENT-ID>',
    clientSecret: '<YOUR-CLIENT-SECRET>'
    }
    })

    Parameters

    Returns IApiMessenger

    The new instance.

Generated using TypeDoc