question

Michael Edmonson avatar image
Michael Edmonson asked Michael Edmonson commented

RingCentral API Calls from Ignition By Inductive Automation

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!

1626132841256.png

1626132859576.png



FYI here's some info on the built in functions im using for the calls https://docs.inductiveautomation.com/display/DOC80/system.net.httpClient

authentication
1626132841256.png (21.2 KiB)
1626132859576.png (5.3 KiB)
1 |1500 characters needed characters left characters exceeded

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 Michael Edmonson commented

Where do you set the Authorization header?

Authorization: Basic xxxxxxx

where xxxxxx is the based64 encode of "app_client_id:app_client_secret"

26 comments
1 |1500 characters needed characters left characters exceeded

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

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/

0 Likes 0 ·

Simple as this

screen-shot-2021-07-13-at-22652-pm.png

0 Likes 0 ·

Okay thank you! but still getting the same error :( resource not found 1626212398994.png

0 Likes 0 ·
1626212398994.png (29.6 KiB)
Show more comments

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