Skip to content

master-start/douyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

抖音小程序OpenApi接口封装

Install

composer require kangdev/douyin -vvv

Usage

<?php
$config = [
    'appid' => 'your-app-id',
    'secret' => 'your-secret',
    'debug' => true,
    'log' => [
        'name' => 'douyin',
        'file' => __DIR__ . '/douyin.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
];

$dispatch = new \KangDev\DouyinDispatch\Dispatch($config);

// getAccessToken
$dispatch->token([
    'grant_type' => 'client_credential',
]);

//code2Session
$code = '';
$dispatch->jscode2session([
    'code'  => $code
]);

About

抖音小程序OpenApi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages