question

teresa-b13989 avatar image
teresa-b13989 asked Phong Vu answered

Migrating from Password Auth to JWT - TypeError: login() got an unexpected keyword argument 'jwt'

Hi,

Below is the script:

RC_SERVER_PRODUCTION = 'https://platform.ringcentral.com'
CLIENT_ID = 'QDpMKy_PQ_eQsTfBMkp5aA'
CLIENT_SECRET = ' '
JWT_TOKEN = ' '

sdk = SDK(CLIENT_ID, CLIENT_SECRET, RC_SERVER_PRODUCTION)
platform = sdk.platform()
platform.login(jwt=JWT_TOKEN)

I am receiving following error:

platform.login(jwt=JWT_TOKEN)

TypeError: login() got an unexpected keyword argument 'jwt'

1708476048545.png

I referenced the following github:
https://github.com/ringcentral/ringcentral-python

1708475812865.png

I tried upgrading

1708476120561.png

Please advise. Thank you!

rest apiauthenticationcredentials
1708475812865.png (7.5 KiB)
1708476048545.png (7.0 KiB)
1708476120561.png (20.4 KiB)
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

You should install the RingCentral 0.8.1 package.

1 |3000

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

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