getting exception string is not JSON formatted
This is throwing it, what should this be?
I have been using
RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com'
rcsdk = SDK(os.environ[RINGCENTRAL_CLIENTID], os.environ[RINGCENTRAL_CLIENTSECRET], os.environ[RINGCENTRAL_SERVER])
And it worked, has this changed?
I have also tried
RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com/restapi/oauth/token'
No difference
Using Python 3.7 64
Please revise your question, I really don't know what worked and what did not work.
Hello,
Thanks for the response, This is what I am getting now, it seems to object to the client id but it does not say why , I have copied this ID directly from the account page...waht am I doing wrong?
Thanks
Message='1MQ8Fg52RwOZCcJWrA4-kA'
Source=C:\Users\Rick\source\repos\RCMaintNotify\RCMaintNotify\RCMaintNotify.py
StackTrace:
File "C:\Users\Rick\source\repos\RCMaintNotify\RCMaintNotify\RCMaintNotify.py", line 41, in <module>
rcsdk = SDK(os.environ[RINGCENTRAL_CLIENTID], os.environ[RINGCENTRAL_CLIENTSECRET], os.environ[RINGCENTRAL_SERVER])
Why don't you try with the value first to see if all the parameters are correct
RINGCENTRAL_CLIENTID = '1MQ8Fg52RwOZCcJWrA4-kA' RINGCENTRAL_CLIENTSECRET = 'abc...' RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com' rcsdk = SDK(RINGCENTRAL_CLIENTID,RINGCENTRAL_CLIENTSECRET,RINGCENTRAL_SERVER)
If that works, then the problem is in your environment. If that does not work, then those params could be incorrect, but let's see what you'll get first.
No change it is still objecting to: '1MQ8Fg52RwOZCcJWrA4-kA'
Looking at your app settings, it is a "Public" app with "Desktop/Windows" platform type. This type of app does not support password flow authentication. Is there a reason you choose those settings for your app? To use password flow, you must choose the app platform type as "Server only- No UI" and it must be a "Private" app.
You cannot modify this app anymore. Either you create a new app properly or let me know if you want to change this app. I can help to change those settings.
Not sure why that was done, I am inheriting this...If you can help change it, I would appreciate it. Otherwise I will just create a new one.
Thanks|
Again
It's now Private and Password Flow type. Try again
Nope, no joy same exception, I have tried creating another new app, with the settings you specified, no change, I noticed when I tried creating a new app with those settings password is not available??
maybe I should change the password? Running out of ideas...
Check if you can login https://service.devtest.ringcentral.com with that user credentials. Then you must use the same user credentials to login your app.
Yes, I was able to get in with those credentials
You new app "ChiliSMS" still has wrong platform type and access type. I recommend you read and use the dev guide getting started help. Create a new app by clicking the "Create SMS app" button.
https://developers.ringcentral.com/guide/messaging/quick-start
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