ringcentral / ringcentral/ringcentral-python

Using the SDK in background tasks

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is identified; start by tracing SDK authentication initialization and how expire_time and refresh_token_expire_time are calculated when auth data is set. Done would be a clear, supported approach for reusing saved OAuth tokens in webhook background tasks, with documentation or tests describing the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.