白标 / 合作伙伴化-api客户端
合作伙伴化API客户端
v1.0.0
2021-08-25 15:06 UTC
Requires
- nategood/httpful: ^0.2.20
README
用于从合作伙伴化发布者API检索销售的库。
使用方法
<?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 ) ) */
许可
© Goldlabeled BV
MIT许可证,详情请见LICENSE.txt。