sumsai/douyin
Composer 安装命令:
composer require sumsai/douyin
包简介
README 文档
README
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
require_once('/path/to/douyin_open/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Douyin\Open\Api\ToutiaoVideoListApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $open_id = "ba253642-0590-40bc-9bdf-9a1334b94059"; // string | 通过/oauth/access_token/获取,用户唯一标志 $access_token = "act.1d1021d2aee3d41fee2d2add43456badMFZnrhFhfWotu3Ecuiuka27L56lr"; // string | 调用/oauth/access_token/生成的token,此token需要用户授权。 $count = 10; // int | 每页数量 $cursor = 0; // int | 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。 try { $result = $apiInstance->toutiaoVideoListGet($open_id, $access_token, $count, $cursor); print_r($result); } catch (Exception $e) { echo 'Exception when calling ToutiaoVideoListApi->toutiaoVideoListGet: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://open.douyin.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ToutiaoVideoListApi | toutiaoVideoListGet | GET /toutiao/video/list/ | 获取用户已发布的视频,支持分页 |
Documentation For Models
- Cursor
- Description
- ErrorCode
- HasMore
- ToutiaoVideo
- ToutiaoVideoListResponse
- ToutiaoVideoListResponseData
- ToutiaoVideoStatistics
Documentation For Authorization
All endpoints do not require authorization.
Author
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-04-15