A registrered service e.g Twilio, SendGrid, Stripe etc. You can register your service via Nozl dashboard.
Tenant API key. A Tenant is represents a team or a group which is going
to use a Service.
Quick Start
const{ Nozl, Payload }=require("nozl-nodejs-sdk");consttestMsg=async()=>{constserviceId: string="a0c236b8-b401-4ced-836e-a533b480d490";// get this from dashboardconstoperationId: string="CreateMessage";// get this value from Service's official OpenAPI spec.constrequestBody: object={To: "RECEIVER_PHONE_NUMBER",Body: "test message from nodejs SDK",From: "SENDERS_PHONE_NUMBER",// get this from twilio's consoleuser_id: "7f47fa0c-3035-4fbf-aff1-c3f7b639cwbz",};constpathParams: object={AccountSid: "AC9f560ea30baaaf8013e4e44284eb6769",};constqueryParams: object={};constpayload: Payload=newPayload(serviceId,operationId,requestBody,pathParams,queryParams);consturl: string="http://localhost:1323";// replace this the actual domainconsttenantApiKey: string="7a5987c7-18c7-497d-8d27-e5765471e410";// retrieve this after registrating a tenant.constnozl: Nozl=newNozl(url,tenantApiKey);constdata=awaitnozl.sendMessage(payload)console.log(data)};testMsg();