Skip to content

Commit 25c14b8

Browse files
authored
Merge pull request #23 from MerleLiuKun/fix-parameters
feat(bug): 🐛 fix list parameters to json style
2 parents e1976ee + 048c1c4 commit 25c14b8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pytiktok/business_account_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Core API impl.
2+
Core API impl.
33
"""
44

55
import json
@@ -277,7 +277,7 @@ def get_account_videos(
277277
if fields is not None:
278278
params["fields"] = self._format_fields(fields)
279279
if filters is not None:
280-
params["filters"] = filters
280+
params["filters"] = self._format_fields(filters)
281281
if cursor is not None:
282282
params["cursor"] = cursor
283283
if max_count is not None:
@@ -432,7 +432,7 @@ def get_video_comments(
432432
"""
433433
params = {"business_id": business_id, "video_id": video_id}
434434
if comment_ids is not None:
435-
params["comment_ids"] = comment_ids
435+
params["comment_ids"] = self._format_fields(comment_ids)
436436
if include_replies is not None:
437437
params["include_replies"] = include_replies
438438
if status is not None:

pytiktok/kit_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Api impl for tiktok developer
2+
Api impl for tiktok developer
33
"""
44

55
import random

pytiktok/models/business_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Models for business account.
2+
Models for business account.
33
"""
44

55
from dataclasses import dataclass, field

pytiktok/models/kit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Models for TikTok kit api.
2+
Models for TikTok kit api.
33
"""
44

55
from dataclasses import dataclass, field

tests/business_account_apis/test_access_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for the access token API
2+
Tests for the access token API
33
"""
44

55
import pytest

0 commit comments

Comments
 (0)