Developers

Subscriptions API

get_subscribers_count


URL:

http://api.msgme.com/v1/subscriptions/get_subscribers_count

METHOD:

Get

DESCRIPTION:

Gets the number of subscribers based on the subscription keyword ID or account ID.

PARAMETERS:

Parameter Description
token The security token that was returned using authentication_api method.
keywordId The keyword for the subscription list.
accountId (Optional) If an account ID is included in the request, the API service will return the total subscribers count of that account across all subscription keywords that the account owns.


API REQUEST:

http://api.msgme.com/v1/subscription/get_subscribers_count?token=[token]&keywordId=[keyword ID]&accountId=[account ID]



API RESPONSE:

		<?xml version="1.0" encoding="UTF-8"?>
		<apiResponse status="[status text]" statusCode="[status code]">
			<subscribersCount>[total number of subscribers]</subscribersCount>
		</apiResponse>


EXAMPLE USAGE:


REQUEST:

GET http://api.msgme.com/v1/subscription/get_custom_fields?token= 0e9ace1582fbb754dfe7f4e11f572bf5273f3c69&keywordId=19879


RESPONSE:

		<?xml version="1.0" encoding="UTF-8"?>
		<apiResponse status="[status text]" statusCode="[status code]">
			<subscribersCount>1293</subscribersCount>
		</apiResponse>