WIRUlink WIRUlink
Talk to us

WIRUlink Coverage API

NOTE:You require a username,password and apikey to make use of this web service.

POST https://www.wiru.co.za/api/AUTH

Used to authenticate API user and obtain a token on successfull login

https://www.wiru.co.za/api/AUTH

form-data

usernameProvided usernamerequired
passwordProvided passwordrequired
apikeyProvided apikeyrequired

Successful call JSON data returned

{
"username": "your username",
"session_start": "Api session timer start",
"session_stop": "Api session timer stop",
"api_call_limit": "Your Api call limit",
"current_api_call_count": "Your current api count",
"token": "Token for current session"
}

Unsuccessful call

INVALID USERNAME/PASSWORD/APIKEY COMBINATION
JSON data returned:
{
"message": "Invalid username,password or api_key combination"
}
INVALID METHOD
JSON data returned:
{
"message": "Invalid method"
}

POST https://www.wiru.co.za/api/NEWCHECK

WIRUlink new coverage check

form-data

tokenToken received from AUTH methodrequired
GPSXLocation GPSX(Latitude)required
GPSYLocation GPSY(Longitude)required
DetailedOption "yes" or "no".default is "no"

token accepted variables

Token received from AUTH method - REQUIRED to do a coverage check
Token has a session timer, if session time expires new AUTH method must be called to get new token.
Detailed : if set to yes, returns detailed coverage check results.

Successful call JSON data returned

Note: Only results for services, networks you have access too would be returned.
{
 "reference": "745eb2fc",
 "networks": {
  {
   "non_rush": "OK"
  },
  {
   "rush": "OK"
  },
  {
   "vuma": "OK"
  },
  {
   "dfa": "OK"
  },
  {
   "evotel": "OK"
  },
  {
   "sadv": "OK"
  }
 }
}

reference return unique coverage check reference.
service array return of successful coverage services.
networks array return of all network results as per request.

Unsuccessful call

INVALID TOKEN SPECIFIED
JSON data returned:
{
"message": "ERROR: Invalid Token"
}
INVALID GPSX SPECIFIED
JSON data returned:
{
"message": "GPSX can not be blank"
}
INVALID GPSY SPECIFIED
JSON data returned:
{
"message": "GPSY can not be blank"
}
INVALID METHOD
JSON data returned:
{
"message": "Invalid method"
}