@ikonintegration/ses-bounce-reporter-client
v1.0.3
Published
Shared module email log API client
Downloads
20
Readme
ses-bounce-reporter-client
Overall
How to Use
import SMEmailLog from '@ikonintegration/ses-bounce-reporter-client';
const API = new EmailLog({
port: 9090, //isOptional
endpoint: EmailLogEndpoint,
//Must be specified when using service routes
apiKey: config.examProvider.key, //API token on IDM.AppID format (generate from APIKey at https://runkit.com/gwdp/idm-appid-v1)
//Must be specified when using admin or user routes
authorizationToken: '', -- optional, IDM JWT for shared module admins and user routes -- Accepts a function to be called async and return the token
clientID: ''
});
//Revoke License
const resp = await API.messageEvent.search(searchObject);
if (!resp || resp.statusCode != 200) {
return ERROR:
} return SUCCESS;
Headers
The following header must be specified in every request!
- Authorization
Available API methods
MessageEvent:
- API.product.get(clientid, msgid, email, eventType, timestamp) - Admin only
- API.product.search(searchObject) - Admin only