承接 ooglek/shareasale-merchant-api-sdk 相关项目开发

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

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

ooglek/shareasale-merchant-api-sdk

Composer 安装命令:

composer require ooglek/shareasale-merchant-api-sdk

包简介

Share-A-Sale Merchant API library

README 文档

README

A PHP SDK for the Share-A-Sale Merchant API

ShareASale Merchant API Documentation: https://account.shareasale.com/m-apiips.cfm

(you must be logged into a valid Merchant Account to view)

NOTE: This is NOT the Affiliate API!

Install

Install Composer and run the following command:

php composer require ooglek/shareasale-merchant-api-sdk

Create the Object

Calling from your code:

$sas = new ooglek\ShareASale\Client(
    '12345',             // MerchantId
    'rAnDoMsTuFf',       // Token
    'sUpErRaNd0mStUfF'   // Secret Key
);

// Returns an array with the Summary of your Merchant account Activity
$records = $sas->activitySummary(
    [
        'datestart' => '15/09/2021',
        'dateend' => '15/08/2021'
    ]
);

Getters and Setters

You can magically get and set any properties in the class by calling their name prefixed with get or set.

$sas->setVersion('3.0');
$sas->getHttpResponse();

Action Methods

Any of the mentioned Actions are implemented magically and case insensitively.

$sas->void(['date' => '15/09/2021', 'ordernumber' => 12345]);

$sas->balance();

$sas->todayataglance();

Troubleshooting

You can use these properties to access the raw Guzzle request data, in case you are having issues.

  • $this->getHttpResponse() // Guzzle Response Object
  • $this->getQuery() // Array of Query Parameters
  • $this->getHeaders() // Array of HTTP Headers
  • $this->getSig() // The string that is SHA256 encoded

ShareASale does not publish their error codes, so yeah, I don't know what your error code means either. Contact ShareASale.

Example

Implemented Service Methods

Transaction Requests

Note: You may need to request special permission for some of these Transaction Actions

  • void
  • edit
  • find
  • new
  • reference

Report Requests

  • transactiondetail
  • weeklyprogress
  • affiliatetimespan
  • activitysummary
  • datafeeddownloads
  • todayataglance
  • staterevenue
  • report-affiliate
  • transactioneditreport
  • transactionvoidreport
  • apitokencount
  • ledger
  • affiliateTags
  • balance

Maintenance Requests

  • bannerList
  • bannerUpload
  • bannerEdit
  • dealList
  • dealUpload
  • dealEdit
  • approveAffiliate
  • declineAffiliate
  • MassTagAffiliates

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固