承接 whitelabeled/tradetracker-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

whitelabeled/tradetracker-api-client

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固