Get Sites

Get list of sites against the particular App.

POST URL https://api.beaconwatcher.com/index.php?action=getSites
Parameter Type Description Demo Values
key string API Key Demo App: M19fV2F0Y2hJdA==
isadmin boolean (0/1) This represents either the user is an admin or not? The value 1 represents that the user is an admin.   
mem_id optional   
API Live Test URL https://beaconwatcher.3scale.net/docs

Response

Status Required
200

{

"status": 1,

"message": "Site List",

"data": [

{

"site_id": "3",

"site_name": "My Demo Site"

"site_details": "Demo site details"

"site_phone": "1111111111"

"site_mobile": "1111111111"

"site_address": "Suit # 9, 2nd Floor, Gohar Center, Wahdat Road"

"site_street1": null

"site_street2": null

"site_city": "Lahore"

"site_state": "Punjab"

"postal_code": "54740"

"site_country": null

"site_long": "74.3223006"

"site_lat": "31.5198235"

"status_id": "1"

"cat_id": "0"

"site_facebook": null

"site_instagram": null

"site_googleplus": null

"site_mail": null

},

{

"site_id": "4",

"site_name": "My Demo Site 4"

"site_details": "Demo site details"

"site_phone": "22222222222"

"site_mobile": "22222222222"

"site_address": "Suit # 9, 2nd Floor, Gohar Center, Wahdat Road"

"site_street1": null

"site_street2": null

"site_city": "Lahore"

"site_state": "Punjab"

"postal_code": "54000"

"site_country": null

"site_long": "74.356506"

"site_lat": "45.5198235"

"status_id": "1"

"cat_id": "0"

"site_facebook": null

"site_instagram": null

"site_googleplus": null

"site_mail": null

},

{

"site_id": "5",

"site_name": "My Demo Site 5"

"site_details": "Demo site details"

"site_phone": "55555555"

"site_mobile": "55555555"

"site_address": "Suit # 9, 2nd Floor, Gohar Center, Wahdat Road"

"site_street1": null

"site_street2": null

"site_city": "Lahore"

"site_state": "Punjab"

"postal_code": "54215"

"site_country": null

"site_long": "77.3223006"

"site_lat": "38.5198235"

"status_id": "1"

"cat_id": "0"

"site_facebook": null

"site_instagram": null

"site_googleplus": null

"site_mail": null

}

]

}