D7SMS

FREE
By d7admin
Updated 5 months ago
SMS
7.4/10
Popularity Score
241ms
Latency
38%
Success Rate

D7SMS API Documentation

Quickly integrate Direct7 SMS Gateway and reach your customers over D7's own connectivity to global mobile network.

View API Details
Balance
GETbalance
SMS
POSTsend
POSTsendbatch
GETbalance

Get user account’s balance and quota.

Authorization:

API-Key

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationHEADER
REQUIREDBasic + Account credentials as username:password pairs, encoded using base64 Example: (Basic Zm9vOmJhcg==)
Code Snippet
unirest.get("https://d7sms.p.rapidapi.com/secure/balance")
.header("X-RapidAPI-Host", "d7sms.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://d7sms.p.rapidapi.com/secure/balance
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://d7sms.p.rapidapi.com/secure/balance")
.header("X-RapidAPI-Host", "d7sms.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication