Sometimes it could be interesting to get only datapoints from a specific campaign. This API request shows how to handle with this use case.
$output = api_request('http://apiv2.clickmeter.com/groups/' . $campaign_id . '/datapoints?type=TP&status=active', 'GET', NULL, $api_key);
The endpoint used belongs to “Management-Groups” category. It is possible to specify:
$campaign_id: the campaign identifier, including datapoints of interest.
type: specify the type of datapoints to recover, “TP” for tracking pixel, “TL” for tracking link.
status: specify the status of the datapoints to recover, “active”, “paused”, “deleted”..
The response body will contain an array (“entities”) of datapoints.