API for mobile number validation and network finder (n-Search)
To validate a mobile number (n-Search) a get request is needed to be held at the following url:
http://ez4usms.com/api/http/hlr.php
The parameters for this request are:
username (required), username
password (required), password
mobiles (required), mobile numbers that we want to check comma seperated without spaces
Example of a request:
http://ez4usms.com/api/http/hlr.php?username=USERNAME&password=PASSWORD&mobiles=306949876543,306931234567,35712548796
Every successful request returns an ID
eg ID:0000001
This request can return the following error messages:
Error: Authentication error.
Error: No recipients.
Error: Insufficient credits.
Checking n-Search result
In order to check HLR lookup result a request is needed to the following URL:
http://ez4usms.com/api/http/hlrquery.php
The parameters for this request are:
username (required), username
password (required), password
mid (required), identifier for n-Search query
mobile (required), number that we want to check
Example of a request:
http://ez4usms.com/api/http/hlrquery.php?username=USERNAME&password=PASSWORD&mid=MESSAGE_ID&mobile=306971234567
This request can return the following messages:
Queued
Pending
Failed
Delivered
Undelivered
Unknown
If status is Pending or Queued then it returns only the status or else it returns:
Status;Country;Operator;IMSI;ServingMSC;ErrorCode
This request can return the following error messages:
Error: Authentication error.
Error: No message ID defined.
Error: No mobile defined.
Error: No such message ID or mobile.