An API messenger.
Sends a message.
import createApiMessenger from '@egomobile/api-messenger'const messenger = createApiMessenger({ baseURL: 'https://api.example.com/', auth: { clientId: '<YOUR-CLIENT-ID>', clientSecret: '<YOUR-CLIENT-SECRET>' }})const result = await messenger.sendMessages({ message: { content: 'PGI+TG9yZW0gaXNwdW0hPC9iPg==', content_type: 'text/html' }, subject: 'Lorem ipsum', to: ['mailto:test2@example.com', 'mailto:test2@example.com']})console.log(result)
The one or more options, representing the message data.
The promise with the results.
Generated using TypeDoc
An API messenger.