Postmark\PostmarkClient::getOutboundClickBrowserPlatformStatistics PHP Method

getOutboundClickBrowserPlatformStatistics() public method

Get information about which browsers platforms (Desktop, Mobile, etc.) were used to open tracked links for the messages sent using this Server, optionally filtering on message tag, and a to and from date.
public getOutboundClickBrowserPlatformStatistics ( string $tag = NULL, string $fromdate = NULL, string $todate = NULL ) : Postmark\Models\DynamicResponseModel
$tag string Filter by tag.
$fromdate string must be of the format 'YYYY-MM-DD'
$todate string must be of the format 'YYYY-MM-DD'
return Postmark\Models\DynamicResponseModel
    function getOutboundClickBrowserPlatformStatistics($tag = NULL, $fromdate = NULL, $todate = NULL)
    {
        $query = array();
        $query['tag'] = $tag;
        $query['fromdate'] = $fromdate;
        $query['todate'] = $todate;
        return new DynamicResponseModel($this->processRestRequest('GET', '/stats/outbound/clicks/platforms', $query));
    }

Usage Example

 function testClientCanGetClickBrowserPlatformStatistics()
 {
     $tk = parent::$testKeys;
     $client = new PostmarkClient($tk->READ_LINK_TRACKING_TEST_SERVER_TOKEN, $tk->TEST_TIMEOUT);
     $stats = $client->getOutboundClickBrowserPlatformStatistics();
     $this->assertNotEmpty($stats);
 }