New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clicksend

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clicksend

Clicksend v3 API

  • 5.0.37
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by1.76%
Maintainers
1
Weekly downloads
 
Created
Source

The official nodejs library for ClickSend v3 REST API

This is the official ClickSend SDK. You'll need to create a free account to use the API. You can register here. You can use our API documentation along with the SDK. Our API docs can be found here.

Installation

Install typescript

You will need to install typescript to compile the code.

sudo npm install typescript

Compile the TypeScript into JavaScript

Run the following commands to compile typescript into javascript:

sudo npm add request http bluebird @types/node
tsc --target es5 api.ts

Adding SDK into your project

Copy the api.js file along with the node_modules directory into your project to use the library, and include this in your file to use the SDK:

var api = require('./api.js');

Getting Started (sms/send example)

Please follow the installation procedure and then run the following code:

var api = require('./api.js');

var smsMessage = new api.SmsMessage();

smsMessage.from = "myNumber";
smsMessage.to = "+0451111111";
smsMessage.body = "test message";

var smsApi = new api.SMSApi("username", "api_key");

var smsCollection = new api.SmsMessageCollection();

smsCollection.messages = [smsMessage];

smsApi.smsSendPost(smsCollection).then(function(response) {
	console.log(response.body);
}).catch(function(err){
	console.error(err.body);
});

FAQs

Package last updated on 14 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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