@christrewin/test-sdk

This is a test SDK for TLS Messaging

Usage no npm install needed!

<script type="module">
  import christrewinTestSdk from 'https://cdn.skypack.dev/@christrewin/test-sdk';
</script>

README

My SDK

My SDK.

Installing

npm install @christrewin/my-sdk

Getting Started

Set the TLS_CLIENT_KEY and TLS_CLIENT_SECRET environment variables. These are the Client key and Client secret you can find here: https://dev.telstra.com/user/me/apps.

To send your first SMS:

import { SMS } from './messaging';

const sms = SMS.getInstance();

sms.send({
  to: "+61<mobile>",
  body: "Hello from Telstra Messaging SDK"
});

TLS_CLIENT_KEY="XXXX" TLS_CLIENT_SECRET="YYYY" node examples/app.js