Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bandwidth/messaging

Package Overview
Dependencies
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bandwidth/messaging - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

2

package.json
{
"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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc