Get Notification

This operation is used to get the notifications aganst its Beacon. If Beacon not exist, then it will also insert the beacon details in database and send the default notifications.

POST URL https://api.beaconwatcher.com/index.php?action=getNotifications

key must be sent with all client requests. The api_key (key) helps the server to validate the request source..

Parameter Type Description Demo Values
key string API Key Demo App: M19fV2F0Y2hJdA==
msb_uuid string
UUID of Beacon  
msb_minor integer
Minor value of beacon. The minor value mostly available at the back of beacon.  
msb_major integer
Major value of beacon. The major value mostly available at the back of beacon.  
msb_mac_address integer
Beacon MAC Address  
msb_txpower integer
It is used to show the battery power of beacon in percentage (%)  
API Live Test URL https://beaconwatcher.3scale.net/docs

Response

Status Response
200

{

"status": 1,

"message": "Notification"

data": [

{

"nt_id": "1",

"nt_name": "Nearby",

"nt_title": "Nearby",

"nt_details": "This promotional notification is shown upon

reaching 'Nearby' Zone",

"zone": "1",

"template": null

},

{

"nt_id": "2",

"nt_name": "In Middle",

"nt_title": "In Middle",

"nt_details": "This promotional notification is shown upon

reaching 'In Middle' Zone.",

"template": null

},

{

"nt_id": "3",

"nt_name": "Far",

"nt_title": "Far",

"nt_details": "This promotional notification is shown upon

"reaching 'Far' Zone.",

"zone": "3",

"template": null

}

]

}