Esempio n. 1
0
        private void IVRButton_Click(object sender, EventArgs e)
        {
            try
            {
                var api = new ConversationsApi();

                string conversationId    = conversationIdTextBox.Text;
                string participantId     = participantIdTextbox.Text;
                CreateSecureSession body = new CreateSecureSession();
                body.FlowId              = "";
                body.UserData            = "<OrderID>|1000|" + conversationId + "|<Entity>";
                body.Disconnect          = false;
                body.SourceParticipantId = userIdTextbox.Text; // agentId

                SecureSession result = api.PostConversationParticipantSecureivrsessions(conversationId, participantId, body);
                IVRResultTextbox.Text = result.ToJson();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }