ydg/douyin-open-sdk

Easier to access douyin open api

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

This package is auto-updated.

Last update: 2024-06-15 08:57:54 UTC


README

douyin-open-sdk

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,
]);