定制 promopult/tiktok-marketing-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

promopult/tiktok-marketing-api

最新稳定版本:v3.1.0

Composer 安装命令:

composer require promopult/tiktok-marketing-api

包简介

https://ads.tiktok.com API PHP-wrapper

README 文档

README

/!\ WIP: Not ready for production.

Convenient wrapper for TikTok Marketing API.

Build Status Scrutinizer Code Quality Code Coverage

Installation

$ composer require promopult/tiktok-marketing-api

or

"require": {
  // ...
  "promopult/tiktok-marketing-api": "*"
  // ...
}

Usage

See examples folder.

$credentials = \Promopult\TikTokMarketingApi\Credentials::fromAccessToken(
    getenv('__ACCESS_TOKEN__')
);

// Any PSR-18 HTTP-client
$httpClient = new \GuzzleHttp\Client();

$client = new \Promopult\TikTokMarketingApi\Client(
    $credentials,
    $httpClient
);

$response = $client->user->info();

print_r($response);

//Array
//(
//    [message] => OK
//    [code] => 0
//    [data] => Array
//        (
//            [create_time] => 1614175583
//            [display_name] => my_user
//            [id] => xxx
//            [email] => xxx
//        )
//
//    [request_id] => xxx
//)

统计信息

  • 总下载量: 7.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: UNLICENSE
  • 更新时间: 2021-07-17