HotSearch.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Lackoxygen\TiktokOpen\Wap\Data\Content;
use Lackoxygen\TiktokOpen\Base\ServiceManager;
class HotSearch extends ServiceManager
{
public function sentences(string $accessToken)
{
return $this->app['client']
->get(
'/hotsearch/sentences/',
[
'access_token' => $accessToken,
]
);
}
public function trendingSentences(string $accessToken, int $cursor, int $count)
{
return $this->app['client']
->get(
'/hotsearch/trending/sentences/',
[
'access_token' => $accessToken,
'cursor' => $cursor,
'count' => $count
]
);
}
public function videos(string $accessToken, string $hotSentence)
{
return $this->app['client']
->get(
'/hotsearch/videos/',
[
'access_token' => $accessToken,
'hot_sentence' => $hotSentence,
]
);
}
}