Skip to content

About

RingCentral Connect Platform Python SDK

Topics

Resources

Stars

58 stars

Watchers

19 watching

Forks

Repository files navigation

RingCentral SDK for Python

Unit Tests Twitter

RingCentral Developers is a cloud communications platform which can be accessed via more than 70 APIs. The platform's main capabilities include technologies that enable: Voice, SMS/MMS, Fax, Glip Team Messaging, Data and Configurations.

Additional resources

Important change logs

1.0.0

  • The SDK requires CPython 3.11 or later. CI tests CPython 3.11 through 3.15.
  • WebSocket subscriptions match server responses to requests, report changes after the server confirms them, and prevent duplicate subscription creation.
  • The WebSocket client reports receive-handler errors without interrupting other handlers and clears its ready state when the receive loop ends.
  • The SDK supports websockets versions 15 through 17. See Subscribing for server events if you use the underlying connection directly.
  • Upgraded to observable 1.x while preserving SDK callback registration and dispatch behavior.
  • Removed the unused presence_subscription_mock() and subscription_mock() methods from ringcentral.test.TestCase.
  • Apps configured for the OAuth client credentials grant can call login() without arguments.
  • This release carries forward the 0.9.3 certificate bundle fix by requiring certifi>=2026.10.19.
  • Installation requires Requests 2.33.0 or later and urllib3 2.8.0 or later within their 2.x series to pick up security fixes in existing environments.
  • Development defaults to Python 3.15. Development and release checks use a locked uv environment.
  • API exception messages omit headers, query strings, and fragments from formatted request details. See Error handling for access to the original request.

Earlier releases

  • In version 0.9.0, we removed PubNub support. If you need subscription to events, please use WebSocket instead. Please refer to demo_subscription.py for more information.
    • If you still need PubNub support, please use version 0.8.x.

Installation

This SDK requires CPython 3.11 or later.

$ pip3 install ringcentral

Usage

Take a look at a sample code.

from ringcentral import SDK

sdk = SDK('CLIENT_ID', 'CLIENT_SECRET', 'SERVER')
platform = sdk.platform()
platform.login(jwt='JWT_TOKEN')
res = platform.get('/account/~/extension/~')
print('User loaded ' + res.json().name)

Client credentials

For an app configured for the OAuth client credentials grant, call login() with no arguments. Call login() again when the access token expires.

from ringcentral import SDK

platform = SDK('CLIENT_ID', 'CLIENT_SECRET', 'SERVER').platform()
platform.login()
account = platform.get('/restapi/v2/accounts/~').json_dict()
print(account['id'])

Error handling

For failed HTTP responses, the SDK includes the status and RingCentral error text in the exception message. Its formatted request details contain the method and URL path, with headers, query strings, and fragments omitted. To inspect the original request explicitly, call exc.api_response().request() on the caught ApiException.

Subscribing for server events

Please refer to demo_subscription.py

The SDK supports websockets versions 15 through 17. get_connection() exposes the underlying websockets connection. To send bytes as a text frame on that connection, use send(data, text=True). Version 17 requires text as a keyword. websockets 17 migration notes

Send SMS

See the SMS demo for a complete example.

dev-notes

https://github.com/ringcentral/ringcentral-python/blob/master/dev-notes.md

About

RingCentral Connect Platform Python SDK

Topics

Resources

Stars

58 stars

Watchers

19 watching

Forks

Releases

Packages

Used by

Contributors

Languages