Questions tagged [circuit-sdk]

Questions related to Circuit REST API, JavaScript, Node.js and iOS SDK.

Technical questions related to any of the Circuit SDKs or APIs, or Circuit OAuth 2.0.

Current supports SDKs/APIs are:

JS SDK API reference at https://circuitsandbox.net/sdk/

Examples listed at https://circuit.github.io/ and complete examples apps at https://github.com/circuit

OAuth related info and app registration at https://circuit.github.io/oauth.html

68 questions
0
votes
1 answer

Do the webhook callback urls have to be https?

I'am currently trying to get messages from circuit working in my kotlin environment. Registering a webhook works fine but circuit is not triggering my local webserver. Does it have to be ssl/tls and if yes does the sandbox accept self signed…
0
votes
1 answer

how to pass multiple type of data to API from server side as formdata?

I want to create circuit (messenger like skype) conversation from my server side code (C#) by calling circuit api. Function : https://circuitsandbox.net/rest/v2/conversations/ I have to pass two type of parameters : 1) Participants - string…
Deepti
  • 35
  • 6
0
votes
1 answer

TypeError when trying to client.logon()

I'am currently in the first steps of programming a small Circuit Bot with Node.js. Here's what I got so far: const Circuit = require('../node_modules/circuit-sdk/circuit.js'); //Circuit-Library importieren var config = require('./config.json');…
0
votes
3 answers

Getting "403" error while registering an Outgoing Webhook via PostMan

URL : https://circuitsandbox.net/rest/v2/webhooks My Headers : Content-Type : application/x-www-form-urlencoded Authorization : Bearer ot-xxxxxxxxxxxx Body : url - Some URl filter - CONVERSATION.CREATE Error I am getting : "The permission…
Kamal Garg
  • 107
  • 1
  • 2
  • 9
0
votes
1 answer

How to send a form with just 1 TextBox and 1 Button via Postman

I tried creating a request via postman with below Request Body with 1 input text, { "subject" : "Fill Up the Form", "content" : "Form Data", "formMetaData" : { "id": "myform1234", "controls": [{ "type":…
Kamal Garg
  • 107
  • 1
  • 2
  • 9
0
votes
1 answer

Send image in attachments by URL in Circuit JS SDK

I'm using a Circuit JS SDK and want to send message with attached image. I found on documentation that I should set the item.attachments to File[] object. But how can I do it if I have only image URL (like https://abc.cde/fgh.png)?
0
votes
1 answer

Is there a way to create a chat box for which the user doesnt have to log in?

What im looking to do is setup a chatbox on my website that allows the user to start a conversation with an employee(who has an circuit account) without the user needing to log in or even having an account. From looking at it it would probably be…
Robert Engel
  • 664
  • 6
  • 13
0
votes
2 answers

Event "formSubmission" doesn't trigger on Circuit SDK

Circuit client in my app subscribed to event 'formSubmission': client.addEventListener('formSubmission', function (event) Until last days it works fine, but now it doesn't trigger. I tried to test it by creating a simple app that just send a form…
0
votes
1 answer

Q: client.logon in Google Function expires

We are trying to deploy a bot in a google function as the example of Trivia but using the Client object. It works, but the next day the bot appears as disconnected. How long is a circuit session? Is it possible to create the client within a google…
Alberto Linde
  • 75
  • 1
  • 5
0
votes
1 answer

How to develop an interface application to support the Call Control functionality with my USB headset for Circuit Client?

I want to write an interface application to support the call control functionality with my USB headset for Circuit Desktop Client. The communication between the interface application and the USB headset is based on the USB-HID (telephony)…
WAP
  • 1
0
votes
1 answer

Circuit SDK error on method circuit.logon

I'm trying to move my bot for Circuit to production. My app for it uploaded on Azure Web App Service. When I test bot on sandbox it works great. But if I change only config (client_id, client_secred and domain) and restart app it falls on method…
0
votes
1 answer

What domain should I use in production for Circuit SDK bot's client?

I created a bot in my own sandbox using Circuit JS SDK. self.client = new Circuit.Client({ client_id: config.client_id, client_secret: config.client_secret, domain: config.domain, …
0
votes
1 answer

How to format text for messages sent with the REST API?

Currently I am sending plain text messages, how can I format the text messages I send visibly within the conversation? Do I need to specify a different content-type or send rich or html format somehow within the REST API? e.g. I'd like to send line…
0
votes
1 answer

How to trigger an event when a Circuit Bot is newly added to a Circuit Conversation

Whenever a Circuit Bot is getting added to a Circuit conversation, I want to trigger an event like, 1) A Bot introducing itself. 2) Send some Circuit Forms to get some info etc.
Kamal Garg
  • 107
  • 1
  • 2
  • 9
0
votes
2 answers

How to use a Circuit Bot to publish a message in Circuit Conversation via Rest API Message

I am trying to make post a message in a circuit conversation through a Circuit Bot via Rest API call. Please help.
Kamal Garg
  • 107
  • 1
  • 2
  • 9