定制 hypeit/tradetracker-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hypeit/tradetracker-api-client

最新稳定版本:v0.5.1

Composer 安装命令:

composer require hypeit/tradetracker-api-client

包简介

TradeTracker API client

README 文档

README

A TradeTracker API client to communicate with the webservice and map results to real model objects.

Build Status Total Downloads Latest Stable Version

Installation

You can install the package via composer:

$ composer require hypeit/tradetracker-api-client

You must configure authentication in order to use the client.

$authentication = new Authentication( 12345, // The customer id 'passphrase', // The passphrase true, // Whether to not allow changes (optional) 'en_GB', // The locale to be used for results. (optional) false // Whether to receive demo results. (optional) );

Then inject the wsdl and the authentication object into the client.

$client = new TradeTrackerClient('http://ws.tradetracker.com/soap/affiliate?wsdl', $authenticate);

Usage

Call a client method to initiate the api call:

$affiliateSites = $client->getAffiliateSites();

Common methods are:

  • getAffiliateSites
  • getCampaigns
  • getClickTransactions
  • getConversionTransactions
  • getTransactions
  • getReportAffiliateSite
  • getReportCampaign
  • getFeeds
  • getFeedProductCategories
  • getFeedProducts

Some method calls can have an optional filter:

$filter = new AffiliateSiteFilter(); $filter->setLimit(5); $affiliateSites = $client->getAffiliateSites($filter);

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04