whitelabeled/partnerize-api-client

v1.0.0 2021-08-25 15:06 UTC

This package is auto-updated.

Last update: 2024-04-25 20:49:50 UTC


README

Latest Stable Version Total Downloads License

Library to retrieve sales from the Partnerize publisher API.

Usage:

<?php
require 'vendor/autoload.php';

$client = new \whitelabeled\PartnerizeApi\PartnerizeClient('username', 'password', '1000l1234');

$transactions = $client->getTransactions(new DateTime('2021-08-24 00:00:00'));

/*
 * Returns:
Array
(
    [0] => whitelabeled\PartnerizeApi\Transaction Object
        (
            [id] => 1000l100000000
            [transactionDate] => DateTime Object
                (
                    [date] => 2021-08-25 09:30:00.000000
                    [timezone_type] => 3
                    [timezone] => Europe/Amsterdam
                )
        
            [clickDate] => DateTime Object
                (
                    [date] => 2021-08-25 09:00:00.000000
                    [timezone_type] => 3
                    [timezone] => Europe/Amsterdam
                )
        
            [approvalDate] =>
            [lastModifiedDate] => DateTime Object
                (
                    [date] => 2021-08-25 10:00:00.000000
                    [timezone_type] => 3
                    [timezone] => Europe/Amsterdam
                )
        
            [program] => Advertisement Campaign
            [campaignId] =>
            [deviceType] =>
            [ipAddress] =>
            [status] => pending
            [publisherReference] => akshdjkashdkjasf
            [conversionReference] => 000000000.000000000
            [sourceReferer] => domain
            [commissionAmount] => 50
        )

)
*/

License

© Goldlabeled BV

MIT license, see LICENSE.txt for details.