Skip to content

Commit a53b022

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c8690e8 commit a53b022

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

TikTok/Queries/Common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
This module contains the QueryClass, which serves as a base class for handling common API queries.
33
4-
The QueryClass is designed to encapsulate shared functionality and attributes for subclasses that interact
5-
with the TikTok API. It provides a reference to the parent Query instance, allowing subclasses to access
4+
The QueryClass is designed to encapsulate shared functionality and attributes for subclasses that interact
5+
with the TikTok API. It provides a reference to the parent Query instance, allowing subclasses to access
66
authentication and endpoint information.
77
88
Usage:
9-
Subclasses can inherit from QueryClass to implement specific API query methods, ensuring
9+
Subclasses can inherit from QueryClass to implement specific API query methods, ensuring
1010
consistent handling of API requests and responses.
1111
"""
1212

TikTok/Query.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"""
22
Provides the `Query` class, which facilitates interaction with the TikTok API.
33
4-
The `Query` class acts as a façade for accessing various underlying query classes that handle specific API requests.
5-
To understand the available methods and functionalities, users should refer to the class variables that represent
4+
The `Query` class acts as a façade for accessing various underlying query classes that handle specific API requests.
5+
To understand the available methods and functionalities, users should refer to the class variables that represent
66
these underlying query classes.
77
8-
This class is designed to work with an OAuth2 authentication instance and an asynchronous HTTP client
9-
to perform various API requests, such as retrieving user and playlist information. The module also handles
8+
This class is designed to work with an OAuth2 authentication instance and an asynchronous HTTP client
9+
to perform various API requests, such as retrieving user and playlist information. The module also handles
1010
error logging and exception management.
1111
1212
Usage:
1313
1. Authenticate using the `OAuth2` class:
14-
14+
1515
```python
1616
from TikTok.Auth import OAuth2
1717
from TikTok.ValidationModels.OAuth2 import RequestHeadersModel, TokenRequestBodyModel
@@ -26,15 +26,15 @@
2626
```
2727
2828
2. Instantiate the `Query` class with the authenticated `OAuth2` instance:
29-
29+
3030
```python
3131
from TikTok.Query import Query
3232
3333
query = Query(auth)
3434
```
3535
3636
3. Retrieve user information:
37-
37+
3838
```python
3939
from TikTok.ValidationModels.User import UserInfoQueryFields
4040
@@ -51,7 +51,7 @@
5151
```
5252
5353
4. Retrieve playlist information:
54-
54+
5555
```python
5656
playlist_info = await query.playlist.info(
5757
playlist_id=123456,

0 commit comments

Comments
 (0)