News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Issues with Python & SMS demo app
Tags: rest api, developer sandbox, sms and text messaging
Nov 23, 2022 at 1:59pm   •   1 replies  •  0 likes
Nathanael B

Hi folks,

I am juuuust getting started with RingCentral & Python, trying to run the sample app. I filled out .ENV as required, however, cannot run without error. I get the error:

Unable to authenticate to platform. Check credentials. Either code, or username with password, or jwt has to be provided

I have provided username, password, Client ID, etc. in .ENV and it is as if the script is ignoring it. I see a line of the script that says:


which leads me to belive this sample .py file defaults to using JWT authentication? If so, how do I change it? If not, what might be wrong with my implementation?

Thank You!

1 Answer
answered on Nov 24, 2022 at 9:15am  

If you want to use username and password flow, you can define the username, password and extension number in your .env file and call the login method like this.

platform.login(os.environ.get('RC_USERNAME', os.environ.get('RC_EXTENSION', os.environ.get('RC_PASSWORD'))

We recommend developers to use JWT auth though.

on Nov 25, 2022 at 11:32am   •  0 likes

Thank you sir, this was exactly what I was looking for. Just wanted to get a rough proof together before I dive into JWT :)

A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us