PHP code example of whitelabeled / partnerize-api-client
1. Go to this page and download the library: Download whitelabeled/partnerize-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
whitelabeled / partnerize-api-client example snippets
ent = 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
)
)
*/