ringcentral / ringcentral-python

RingCentral Connect Platform Python SDK
MIT License
45 stars 35 forks source link

Using the SDK in background tasks #42

Open mangatinanda opened 4 years ago

mangatinanda commented 4 years ago

We are using OAuth 2.0 Authorization Code Flow and save tokens to our DB.

We process webhooks that we receive from ringcentral in background tasks.

Each time a background task is run, we have to initialise the SDK with authentication data. Since expire_time and refresh_token_expire_time are calculated whenever auth data is being set, this will not work for us.

Is there a way we can use the sdk for this use case?