RapidAPI logo

Hajana One Single Branded SMS Only For Pakistan

FREE
By hajana1
Updated 4 months ago
Business
5.2/10
Popularity Score
918ms
Latency
-
Success Rate

Hajana One Single Branded SMS Only For Pakistan API Documentation

Hajana One SMS Gateway has been designed for your convenience. It sends personalized messages all over the world, and delivery lasts not more than a few minutes (sending speed is up to 500 SMS per second). After the process is finished, you get detailed reports. Numerous features of the SMS sending service provide easy, quick and safe distribution of your campaigns.

View API Details
GETSingle SMS API
GETSingle SMS API

This API Send Single SMS

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
usernameSTRING
REQUIREDHajana One Account Username
passwordSTRING
REQUIREDHajana One Account Password
phoneSTRING
REQUIREDPakistani Phone Number
senderSTRING
REQUIREDSender ID Registered on Hajana One SMS Gateway
Optional Parameters
messageSTRING
OPTIONALText Message Content
uniNUMBER
OPTIONAL1 for UniCode and 0 for English
Code Snippet
unirest.get("https://hajana1-hajana-one-bulk-branded-sms-only-for-pakistan-v1.p.rapidapi.com/sms-api.php?message=This%2Bis%2Bmy%2Btest%2BSMS%2Bfrom%2BHajana-One%2BSMS%2BGateway&uni=1&username=********&password=********&phone=923001234567&sender=Hajana+One")
.header("X-RapidAPI-Host", "hajana1-hajana-one-bulk-branded-sms-only-for-pakistan-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://hajana1-hajana-one-bulk-branded-sms-only-for-pakistan-v1.p.rapidapi.com/sms-api.php
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://hajana1-hajana-one-bulk-branded-sms-only-for-pakistan-v1.p.rapidapi.com/sms-api.php?message=This%2Bis%2Bmy%2Btest%2BSMS%2Bfrom%2BHajana-One%2BSMS%2BGateway&uni=1&username=********&password=********&phone=923001234567&sender=Hajana+One")
.header("X-RapidAPI-Host", "hajana1-hajana-one-bulk-branded-sms-only-for-pakistan-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