Skip to content

sendbird/sendbird-platform-sdk-python

Repository files navigation

Sendbird banner image

link to docs

This is a python library that makes talking to the Sendbird Platform API easier. With this library you can extend your Sendbird integration to include advanced features like channel automation and user management.

🔥 Quick start

import sendbird_platform_sdk
from sendbird_platform_sdk.api import user_api
from pprint import pprint


configuration = sendbird_platform_sdk.Configuration(
    host = "https://api-YOUR_APP_ID_FROM_DASHBOARD.sendbird.com"
)

with sendbird_platform_sdk.ApiClient(configuration=configuration) as api_client:
    api_instance = user_api.UserApi(api_client)
    api_token = "YOUR_MASTER_API_TOKEN_FROM_DASHBOARD"

    try:
        api_response = api_instance.list_users(api_token=api_token, limit=1)
        pprint(api_response)
    except sendbird_platform_sdk.ApiException as e:
        print("Exception when calling UserApi->list_users: %s\n" % e)

⚒️ Prerequisite

In order to make requests with this SDK you will need you master API token. This can be found through the Sendbird dashboard. Each app you create in Sendbird has its own master api token. These tokens can be found in Settings > Application > General.

how to find you api token

💻 Requirements

This package has been tested with python version 3.9.10

⚙️ Installation

see Local Development

🤓 Local Development

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

🗃️ Documentation

All the documentation for this project lives in the /docs directory of this repo.

Helpful links
Documentation
Announcement docs/AnnouncementApi.md
Application docs/ApplicationApi.md
Bot docs/BotApi.md
GroupChannel docs/GroupChannelApi.md
Message docs/MessageApi.md
OpenChannel docs/OpenChannelApi.md
User docs/UserApi.md
Webhooks docs/WebhooksApi.md

About

Sendbird Platform API SDK for server languages

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages