ydg/douyin-open-sdk

Easier to access douyin open api

Installs: 2 109

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ydg/douyin-open-sdk

v1.0.0 2023-09-15 06:51 UTC

This package is auto-updated.

Last update: 2025-10-15 12:04:08 UTC


README

let php developer easier to access douyin open api

Install the latest version with

$ composer require ydg/douyin-open-sdk

Basic Usage

Get Client Token

<?php

namespace Ydg\DouyinOpenSdk\Douyin;

$app = new Douyin();
$app->oauth->client_token([
    'client_key' => 'your client key',
    'client_secret' => 'your client secret',
]);

Search Product

<?php

namespace Ydg\DouyinOpenSdk\Douyin;

$app = new Douyin([
    'access_token' => 'your access_token'
]);
$app->lifeOutsideDistribution->search_product([
    'uid' => 'your uid',
    'cursor' => 0,
    'count' => 10,
    'sort_by' => 1,
    'order_by' => 1,
]);