whitelabeled/tradetracker-api-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

whitelabeled/tradetracker-api-client

最新稳定版本:v1.0.2

Composer 安装命令:

composer require whitelabeled/tradetracker-api-client

包简介

TradeTracker API client

README 文档

README

Latest Stable Version Total Downloads License

Library to retrieve sales from the TradeTracker API. This API is intended for publishers who would like to automatically import transaction data.

Usage:

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

$client = new \whitelabeled\TradeTrackerApi\TradeTrackerClient('1234567', 'abcdef1234567890abcdef1234567890');

$transactions = $client->getTransactions(new DateTime('2017-03-01'), new DateTime('2017-03-10'));

print_r($transactions);
/*
 * Returns:
Array
(
    [0] => whitelabeled\TradeTrackerApi\Transaction Object
        (
            [id] => 3234595375
            [transactionDate] => DateTime Object
                (
                    [date] => 2017-03-02 13:36:23.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2017-03-02 13:25:52.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [assessmentDate] => DateTime Object
                (
                    [date] => 2017-03-20 18:10:52.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [program] => NSInternational.nl
            [programId] => 943
            [status] => accepted
            [rejectionReason] => 
            [reference] => tickets
            [commission] => 0.861
            [orderValue] => 28.7
            [orderDescription] => BEBCE|2|1|2017-03-03
            [mediaId] => 123456
            [mediaName] => Your website name
            [paidOut] => 1
            [transactionType] => sale
        )

    [1] => whitelabeled\TradeTrackerApi\Transaction Object
        (
            [id] => 3898934503
            [transactionDate] => DateTime Object
                (
                    [date] => 2017-03-02 22:08:46.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [clickDate] => DateTime Object
                (
                    [date] => 2017-03-02 21:39:46.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [assessmentDate] => DateTime Object
                (
                    [date] => 2017-03-20 18:10:52.000000
                    [timezone_type] => 1
                    [timezone] => +01:00
                )

            [program] => NSInternational.nl
            [programId] => 943
            [status] => accepted
            [rejectionReason] => 
            [reference] => i-tickets
            [commission] => 0.792
            [orderValue] => 26.4
            [orderDescription] => BEABC|2|2|2017-03-03
            [mediaId] => 123456
            [mediaName] => Your website name
            [paidOut] => 1
            [transactionType] => sale
        )
)
*/

License

© Goldlabeled BV

MIT license, see LICENSE.txt for details.

统计信息

  • 总下载量: 12.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-11