Hello,
I am using a SCADA software called ignition that has Jython embedded into it that I can use to do all kinds of scripting like api calls. I'm trying to figure out how to get call logs from ringCentral within ignition using some built in functions from ignition/python ( I tried to simply import the ringCentral python library into the backend of ignition, but one or more of the dependencies of the library is done in C and that doesnt work with Jython). To begin with i've been trying to log in using a post call but am getting an error. Here are some screenshots. I've been trying to get this to work for the better part of a week so any help is appreciated in advance!
FYI here's some info on the built in functions im using for the calls https://docs.inductiveautomation.com/display/DOC80/system.net.httpClient
Where do you set the Authorization header?
Authorization: Basic xxxxxxx
where xxxxxx is the based64 encode of "app_client_id:app_client_secret"
Do you have any other information on how to encode the app_client_id:app_client_secret ?
I tried using this website but there are a few parameters that i dont know about.
https://www.base64encode.org/
Simple as this
Okay thank you! but still getting the same error :( resource not found
you still missed the Basic xxxxxx
I forgot to add the "Basic" but the rest of the encoded key is there on line 9. i Added the word basic and still same error..
Why did you add the /POST in the authUrl? remove it.
Good catch. That didnt work either though lol :(
You app's platform type is incorrect:
Platform type: Server/Web
To authenticate with password flow, you need to specify the app's platform type as "Server-only (No UI)"
I just changed it for you. Try it again.
Still no luck unfortunately
Can you try
headers = { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept': 'application/json', 'Authorization': 'Basic xxxxx' }
no change.
The string "%20/HTTP/1.1" should not be in the authUrl either
hey!!! different error! that's good lol some progress.
Can you login https://service.devtest.ringcentral.com with that user login credentials? If yes, can you remove the plus sign "+" from the username (or escape it)
I got a different error this time, but i could log in to that link with these credentials
Why you remove the country code 1? And don't post your user name and password here. Remove the attachment!
10-4 removed. im still getting the same error
I believe that the problem now is with your username and password. Double check them, make sure it is the exact credentials you login the service web.
my password includes capitals, lower cases, and an !. would i have to escape any of that?
Depends on the programming language and lib you use. Can be required for .NET.
Did you change your password since you post the screenshot?
i havent changed the password, no.
Then your password is incorrect. I used the password you accidentally shared this morning to login your sandbox service web and it failed. It also failed in my code which works 100% with my sandbox account.
Here's the audit trail
that is so weird... let me try changing the password maybe that will help. I used that password to log into the link you provided earlier.
changed the password.. still no luck.
Are you able to run Node JS, Python or PHP code? If not, email me your sandbox account password @ phong.vu@ringcentral.com
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