oute-services-mail-sdk
0.0.16 • Public • Published This module expose helper functions
params = {
url: @server url
token: @access token
}
Mail = require("oute-services-mail-sdk")
mail_instance = new Mail(params)
body = {
"asset_id": "q-GmTD5-K",
"workspace_id": "ZzBfJMpfQ",
"json": {
"a": "test"
},
"html": "<html><body>hhhh</body></html>",
"name" : "email template",
"project_id" : "zZ3Fgzk1T",
"type" : "FILE",
"annotation" : "EMAIL_TEMPLATE",
"user_id" : "test@gofo.app",
"share_to_all": true
}
await mail_instance.save(body)
query = {
"_id": "UvuPE2PGn"
}
await mail_instance.findOne(query)
query = {
"project_id": "zZ3Fgzk1T"
}
await mail_instance.getByProjectId(query)
/oute-services-mail-sdk/
//
Package Sidebar
Install
npm i oute-services-mail-sdk
Weekly Downloads