fix: TikTok add missing scopes + send empty body to creator_info endpoint
This commit is contained in:
parent
6e86b83433
commit
1129205c22
2 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,10 @@ class TikTokController extends SocialController
|
|||
protected array $scopes = [
|
||||
'user.info.basic',
|
||||
'user.info.profile',
|
||||
'user.info.stats',
|
||||
'video.publish',
|
||||
'video.upload',
|
||||
'video.list',
|
||||
];
|
||||
|
||||
public function connect(Request $request): Response|RedirectResponse
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ private function getHttpClient(): PendingRequest
|
|||
private function queryCreatorInfo(): array
|
||||
{
|
||||
$response = $this->getHttpClient()
|
||||
->post("{$this->baseUrl}/post/publish/creator_info/query/");
|
||||
->post("{$this->baseUrl}/post/publish/creator_info/query/", []);
|
||||
|
||||
if ($response->failed()) {
|
||||
Log::warning('TikTok creator_info query failed', ['body' => $this->redactResponseBody($response->body())]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue