News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

Search
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
How to fix refresh access expuired problem
Tags: fax, getting started
Oct 30, 2020 at 7:51am   •   1 replies  •  0 likes
Rick Smith

refresh token has expired problem.


Using this code to try to send a fax


platform = rcsdk.platform()
#platform.auth().refresh_token() #No good
platform.auth().data() #No good
platform.refresh() #Try this ...No good
#platform.login("+nnnn", "101", "password")
accountId = 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~'
extensionId = '101'
recipient="+1800555..."
builder = rcsdk.create_multipart_builder()
builder.set_body({
'to' :[{'phonenumber': recipient}],
'faxresolution': "High'",
'coverPageText': "This is a fax page sent to you automatically from"
})
request = builder.request(f'/restapi/v1.0/account/{accountId}/extension/{extensionId}/fax')
resp = platform.send_request(request)


I know, the token expires after 7 days, but can't seem to find a way to refresh it? Or do I have to recreate the app from scratch in the sandbox, very disconcerting.

1 Answer
answered on Nov 19, 2020 at 5:29am  

As per I know RC SDK takes care of the token lifecycle and refresh tokens automatically .

Check the below thread, if they helps you

https://community.ringcentral.com/questions/1298/refresh-token-has-expired-in-python.html

https://stackoverflow.com/questions/45375954/ringcentral-js-sdk-refresh-token-is-missing


 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

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