question

rick-smith2386 avatar image
rick-smith2386 asked Tyler Liu commented

Unresolved Import RingCentral

Getting unresolved import exception using these in Python 3.7 These work in 3.6...What am I doing wrong?

from ringcentral_client import PubNub

from ringcentral_client import RestClient, SANDBOX_SERVER


sdk
1 |1500

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
Are you talking about this SDK?  https://github.com/tylerlong/ringcentral-python
1 |1500

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

rick-smith2386 avatar image
rick-smith2386 answered
I believe so.
1 |1500

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered Tyler Liu commented
I tried pipenv and it worked for me:

test python -V
Python 3.7.2
  test pipenv install ringcentral_client
Installing ringcentral_client
Adding ringcentral_client to Pipfile's [packages]
Installation Succeeded
Installing dependencies from Pipfile.lock (f81978)
 
1 comment
1 |1500

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Content of index.py:

from ringcentral_client import RestClient, SANDBOX_SERVER
import os
rc = RestClient(os.environ.get('RINGCENTRAL_CLIENT_ID'), os.environ.get('RINGCENTRAL_CLIENT_SECRET'), SANDBOX_SERVER)
rc.authorize(os.environ.get('RINGCENTRAL_USERNAME'),os.environ.get('RINGCENTRAL_EXTENSION'),os.environ.get('RINGCENTRAL_PASSWORD'))
print(rc.token)



0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys