RapidAPI logo

Onehop SMS

FREE
By soham.d94
Updated 4 months ago
Other
-/10
Popularity Score
-
Latency
-
Success Rate

Onehop SMS API Documentation

The listed REST API calls give you access to the entire Onehop Platform stack. These API calls are designed to make it easy to add a rich in-app messaging feature to your application.

View API Details
Credits
GETSMS Credits Information
SMS
POSTSend SMS
POSTSend BULK SMS
GETSMS Credits Information

This API will return credit information for each Product you have in product Inventory. currency_code is the base currency for credit deduction and information for each product.

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
apiKeyHEADER
REQUIREDdescription
Code Snippet
unirest.get("https://soham-d94-onehop-v1.p.rapidapi.com/v1/credits/")
.header("X-RapidAPI-Host", "soham-d94-onehop-v1.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://soham-d94-onehop-v1.p.rapidapi.com/v1/credits/
Request Method: GET
Response Headers
Response Body
Log inSign up

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://soham-d94-onehop-v1.p.rapidapi.com/v1/credits/")
.header("X-RapidAPI-Host", "soham-d94-onehop-v1.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