Get Subscriber

This endpoint is used to get subscriber. The request method of this call needs to be "GET".


https://api2.pushassist.com/subscribers/


Example
function get_subscribers(){
				
	$url = 'https://api2.pushassist.com/subscribers/';     		
	
	$headers = array(
		'X-Auth-Token: Your API Key',
		'X-Auth-Secret: Your SECRET Key',
		'Content-Type: application/json'
	);
   
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);		
	curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
	curl_setopt($ch, CURLOPT_SSLVERSION, 4);
	
	$result = curl_exec($ch);

	if ($result === FALSE) {
		die('Curl failed: ' . curl_error($ch));
	}
	
	curl_close($ch);

	$result_arr = json_decode($result, true);
	
	return $result_arr;
} 
Response
if($response['status'] == 'Success'){

	echo $response['siteurl'];
	echo $response['Chrome'];
	echo $response['Firefox'];
	echo $response['Safari'];
	echo $response['Opera'];
	echo $response['Edge'];
	echo $response['total'];
	echo $response['active'];
	echo $response['unsubscribed'];

} else if($response['status'] == 'Error') {

	echo $response['error_message'];

} else {

	echo $response['errors'];
}