@bandwidth/messaging
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "sideEffects": false, |
# Bandwidth Node Messaging SDK | ||
[![Test](https://github.com/Bandwidth/node-messaging/actions/workflows/test.yml/badge.svg)](https://github.com/Bandwidth/node-messaging/actions/workflows/test.yml) | ||
| **OS** | **Node** | | ||
|:---:|:---:| | ||
| Windows 2016 | 12, 14, 16 | | ||
| Windows 2019 | 12, 14, 16 | | ||
| Ubuntu 18.04 | 12, 14, 16 | | ||
| Ubuntu 20.04 | 12, 14, 16 | | ||
Note: As of version 3.0.0, this package has been upgraded to TypeScript | ||
@@ -15,3 +24,3 @@ | ||
``` | ||
```js | ||
import { Client, ApiController, MessageRequest } from '@bandwidth/messaging'; | ||
@@ -28,8 +37,8 @@ const client = new Client({ | ||
### Send A Text Message | ||
``` | ||
var applicationId = "3-a-b-c"; | ||
var toPhoneNumber = "+15554443333"; | ||
var fromPhoneNumber = "+15553334444"; | ||
var text = "Hello world"; | ||
var body = { | ||
```js | ||
const applicationId = "3-a-b-c"; | ||
const toPhoneNumber = "+15554443333"; | ||
const fromPhoneNumber = "+15553334444"; | ||
const text = "Hello world"; | ||
const body = { | ||
applicationId: applicationId, | ||
@@ -41,3 +50,3 @@ to: [toPhoneNumber], | ||
var createMessageResponse = await controller.createMessage(accountId, body); | ||
const createMessageResponse = await controller.createMessage(accountId, body); | ||
console.log(createMessageResponse.result.id); | ||
@@ -44,0 +53,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
560084
63