TokApi - mobile version

פרמיום
על ידי Somjik | מְעוּדכָּן 4 दिन पहले | Social
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

1,205ms

רמת שירות

100%

Health Check

100%

חזרה לכל ההדרכות (1)

Simple http client for all available endpoints

We have a simple python http client available on github which support all available endpoints

Installation

pip install tokapi-client

Usage

api = TokApi('YOUR_RAPID_API_KEY')

# Let's find some users by search query with pagination
keyword = 'nike'
offset = 0
for i in range(0, 3):
    result = api.search_user_by_keyword(keyword, offset=offset)
    data = result.json()

    for user in data['user_list']:
        info = user['user_info']
        print('Nickname: {}, region: {}'.format(info['nickname'],
                                                info['region']))

    offset = data['cursor']

Examples

You can find more complex usage examples in examples folder in our github repository