affiliatelabs/responsecrm-php

ResponseCRM 的非官方 PHP 封装

0.1.0 2018-04-27 05:07 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:01:57 UTC


README

这是由 Affiliate Labs 提供的非官方 ResponseCRM PHP 封装。

有关每个方法的数据格式化详细信息,请参阅官方 API 文档

安装

composer require affiliatelabs/responsecrm-php

用法

<?php

use AffiliateLabs\ResponseCRM\ResponseCRM;

class Example
{
	public function test()
    {
    	$crm = new ResponseCRM('ApiGuid-Token');
        echo 'Authorization is ' . $crm->testAuth();
    }
}

可用方法

客户

addCustomer(array $data)
editCustomer($customerID, array $data)
editRecurring(array $customerIDs, $chargeID, array $data)
listRecurring($customerID)
addNote($customerID, $content)
listNotes($customerID)
markAsCancelled(array $customerIDs)
markAsChargeback($customerID)

履行

listFulfillments($date)
updateTracking($transactionID, $trackingNumber)

线索

addLead(array $data)
listLeads()

网站

listSites()

测试

testAuth()

交易

signup(array $data)
upsell(array $data)
refund($transactionID, $amount)
listTransactions($dateFrom, $dateTo)

Webhooks

registerWebhook($siteID, $event, $payload)
deleteWebhook($webhookID)
listWebhooks($siteID)
webhookStats($webhookID)

贡献

感谢您考虑为 ResponseCRM 的这个封装贡献。拉取请求欢迎,并将及时审查。

许可

本项目是开源软件,受 MIT 许可证 的许可。