PHPackages                             iceqi/douyin-trade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. iceqi/douyin-trade

ActiveLibrary

iceqi/douyin-trade
==================

抖音交易系统api

v2.0.5(3y ago)0108PHP

Since Nov 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/iceqi/douyin-trade)[ Packagist](https://packagist.org/packages/iceqi/douyin-trade)[ RSS](/packages/iceqi-douyin-trade/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

抖音生活服务开放平台 api
==============

[](#抖音生活服务开放平台-api)

### 使用方法

[](#使用方法)

验证（Token）
=========

[](#验证token)

```
获取token 方法
try {

    $oauth = new \Iceqi\DouYin\Api\Apps\Oauth\Oauth();
    $oauth->grant_type = "client_credential";
    $oauth->client_key = "xxx";
    $oauth->client_secret = "xxx";
    $result = $oauth->client_token()->doQuery()->result();

    print_r($result);die;

} catch (\Iceqi\Douyin\Api\Exceptions\DouYinException $exception) {

    Log::error($exception->getMessage()  . '接口异常');

}

```

商户（Supplier）
============

[](#商户supplier)

```
商铺同步 方法
$suppler = (new \Iceqi\DouYin\Api\Apps\Poi\V2\Supplier());
$suppler->supplier_ext_id = xxx;
$suppler->status = 1;
$suppler->name = xxx;
$suppler->shopid = xxx;
$suppler->type =  xxx;
$suppler->poi_id =  xxx;
$suppler->attributes = (object)[];
$result = $suppler->setToken($this->DouYinToken())->sync()->doQuery()->result();

```

商品（Goods）
=========

[](#商品goods)

```
查询商品草稿数据

$goods = new Iceqi\DouYin\Api\Apps\Life\Goods\Goods();

$result = $goods->setToken($access_token)->product_draft_list()->doQuery()->result();

```

交易（Trade）
=========

[](#交易trade)

```
订单退款
如果是交易（Trade）接口则必须要传appid 无需传递token
$refund = new \Iceqi\DouYin\Api\Apps\Trade\V2\Refund();
$refund->trade("appid");
$refund->out_order_no = $data["out_order_no"];
$refund->out_refund_no = $data["out_refund_no"];
$refund->order_entry_schema = ["path" => "pages/paymentSucess/paymentSucess"];
$refund->notify_url = "xxx";
$refund->item_order_detail = $data["item_order_list"];

```

可能接口文档整理的不全，后续不断更新

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

7

Last Release

1169d ago

Major Versions

v1.0 → v2.0.02022-12-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/5836c32afc299958c9e27e778bb553edc9da20fb80c91b28fb1af618ad0e9f23?d=identicon)[iceqi](/maintainers/iceqi)

---

Top Contributors

[![iceqi](https://avatars.githubusercontent.com/u/3378315?v=4)](https://github.com/iceqi "iceqi (33 commits)")

### Embed Badge

![Health badge](/badges/iceqi-douyin-trade/health.svg)

```
[![Health](https://phpackages.com/badges/iceqi-douyin-trade/health.svg)](https://phpackages.com/packages/iceqi-douyin-trade)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
