Interaction Designer REST API Tools

Similar documents
Crystal Reports Import Utility

PureConnect Integration to Oracle Service Cloud Data Dictionary

Interaction Center Integration with Remedy

Client DDE API Developer's Help

Symantec Endpoint Protection for Customer Interaction Center Servers and Subsystems

Interaction Tracker Filtered Directories

Symantec Endpoint Protection 14 for Customer Interaction Center Servers and Subsystems

Text To Speech Engines for IC

Symantec Endpoint Protection 12.1 RU1 for Customer Interaction Center Servers and Subsystems

Exchange MAPI Support for CIC

Symantec Endpoint Protection for Customer Interaction Center Servers and Subsystems

Interaction Fax Cover Page Editor

Interaction Recorder Extreme Query

VoiceXML. Installation and Configuration Guide. Interactive Intelligence Customer Interaction Center (CIC) Version 2016 R4

Interaction Fax Printed help. PureConnect powered by Customer Interaction Center (CIC) 2018 R1. Abstract

Zendesk Screen Pop Connector. Printed Help. PureConnect powered by Customer Interaction Center (CIC) 2018 R1. Abstract

CIC Workstation Applications in Citrix and Remote Desktop Services Environments

Customer Interaction Center Server

CIC ACD Processing. Technical Reference 2018 R1. Last updated August 31, 2017 (See Change Log for summary of changes.) Abstract

Factory Image Restoration Procedures

IC Port Maps and Data Flow Diagrams

Interaction Feedback Help Printed help. PureConnect powered by Customer Interaction Center (CIC) 2018 R1. Abstract

CIC Migration Guide. Installation and Configuration Guide. Customer Interaction Center (CIC) 2018 R1

Interaction Media Server Appliance

CSV List Import. Technical Reference. Interactive Intelligence Customer Interaction Center (CIC) 2016 R1. Abstract

Interaction Migrator

CIC Multi-Site. Technical Reference. Customer Interaction Center (CIC) 2018 R1

PureConnect New Installation Checklists

CIC Managed IP Phones

IC Licensing. Technical Reference. Interactive Intelligence Customer Interaction Center (CIC) 2017 R4

Interaction SIP Bridge

Status Aggregator. Technical Reference. Interactive Intelligence Customer Interaction Center (CIC) 2016 R1

Interaction Web Portal and Interaction Marquee

Interaction Media Streaming Server

CIC Automated Switchover System

IC Integration to Salesforce Desktop

Interaction Media Streaming Server

Interaction Attributes

Configuration of CIC Phone Features for Polycom Phones

Interaction Media Server

Group Policy Deployment for CIC Applications

Interaction Mobilizer

PureConnect. Installation and Configuration Guide 2018 R1. Last updated September 26, 2017 (See Change Log for summary of changes.

PureConnect Quality of Service

Introduction to IceLib

Interaction Web Tools

Custom ODBC Contact Directories

IC Integration to Siebel

Interaction Web Tools

Interaction SIP Bulk Caller

CIC Text to Speech Engines

StorageGRID Webscale NAS Bridge Management API Guide

Interaction Desktop Agent Overview

Release 3.0. Delegated Admin Application Guide

Interaction Web Tools

Interaction Supervisor Printed Help. PureConnect powered by Customer Interaction Center (CIC) 2018 R2. Abstract

Zendesk Connector. Version 2.0. User Guide

October J. Polycom Cloud Services Portal

API Security Management SENTINET

Polycom RealPresence Access Director System, Virtual Edition

Informatica Cloud Spring REST API Connector Guide

SafeNet Authentication Service

SafeNet Authentication Service

SafeNet Authentication Service

SafeNet Authentication Client

Cisco has more than 200 offices worldwide. Addresses, phone numbers, and fax numbers are listed on the Cisco website at

Quick Connection Guide

Polycom RealPresence Access Director System

SafeNet Authentication Service

API Security Management with Sentinet SENTINET

SafeNet Authentication Service

Copyright. Copyright Ping Identity Corporation. All rights reserved. PingAccess Server documentation Version 4.

Polycom RealConnect for Microsoft Teams

SafeNet Authentication Client

Intel Cache Acceleration Software for Windows* Workstation

Partner Center: Secure application model

SafeNet Authentication Service

HYCU SCOM Management Pack for F5 BIG-IP

Creating and Installing SSL Certificates (for Stealthwatch System v6.10)

WebEx Connector. Version 2.0. User Guide

Oracle Fusion Middleware. API Gateway OAuth User Guide 11g Release 2 ( )

Intel Unite Solution Version 4.0

Box Connector. Version 2.0. User Guide

Installation Guide. Informiam Proactive Business Management Informiam Cisco Adapter v

Genesys Application Note. AudioCodes SIP Phones With Genesys SIP Server. Document version 1.7

Microsoft Outlook Interaction Desktop Add-In

Nimsoft Service Desk. Single Sign-On Configuration Guide. [assign the version number for your book]

RSA Identity Governance and Lifecycle Collector Data Sheet For IBM Tivoli Directory Server

GEL Scripts Advanced. Your Guides: Ben Rimmasch, Yogesh Renapure

How to Create a.cibd/.cce File from Mentor Xpedition for HLDRC

Copyright. Copyright Ping Identity Corporation. All rights reserved. PingAccess Server documentation Version 5.

Dropbox Connector. Version 2.0. User Guide

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Cisco TelePresence Server 4.2(3.72)

SafeNet Authentication Client

Terms of Use. Changes. General Use.

SafeNet Authentication Service

Polycom RealConnect for Office 365

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

Avaya Solution & Interoperability Test Lab

Transcription:

Interaction Designer REST API Tools Developer's Guide 2018 R1 Last updated August 8, 2017 (See Change Log for summary of changes.) Abstract This document gives examples of using CIC s REST Tools to build handlers that communicate with external RESTful APIs. Genesys 7601 Interactive Way Indianapolis, Indiana 46278 Telephone/Fax (317) 872-3000 www.genesys.com

Copyright and Trademark Information Interactive Intelligence, Interactive Intelligence Customer Interaction Center, Interaction Administrator, Interaction Attendant, Interaction Client, Interaction Designer, Interaction Tracker, Interaction Recorder, Interaction Mobile Office, Interaction Center Platform, Interaction Monitor, Interaction Optimizer, and the Spirograph logo design are registered trademarks of Genesys Telecommunications Laboratories, Inc. Customer Interaction Center, EIC, Interaction Fax Viewer, Interaction Server, ION, Interaction Voicemail Player, Interactive Update, Interaction Supervisor, Interaction Migrator, and Interaction Screen Recorder are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 1997-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Dialer and Interaction Scripter are registered trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2000-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Messaging Interaction Center and MIC are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2001-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Director is a registered trademark of Genesys Telecommunications Laboratories, Inc. e-faq Knowledge Manager and Interaction Marquee are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2002-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Conference is a trademark of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2004-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction SIP Proxy and Interaction EasyScripter are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2005-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Gateway is a registered trademark of Genesys Telecommunications Laboratories, Inc. Interaction Media Server is a trademark of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2006-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Desktop is a trademark of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2007-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Process Automation, Deliberately Innovative, Interaction Feedback, and Interaction SIP Station are registered trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2009-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Analyzer is a registered trademark of Genesys Telecommunications Laboratories, Inc. Interaction Web Portal and IPA are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2010-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Spotability is a trademark of Genesys Telecommunications Laboratories, Inc. 2011-2017. All rights reserved. Interaction Edge, CaaS Quick Spin, Interactive Intelligence Marketplace, Interaction SIP Bridge, and Interaction Mobilizer are registered trademarks of Genesys Telecommunications Laboratories, Inc. Interactive Intelligence Communications as a Service and Interactive Intelligence CaaS are trademarks or service marks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2012-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Speech Recognition and Interaction Quality Manager are registered trademarks of Genesys Telecommunications Laboratories, Inc. Bay Bridge Decisions and Interaction Script Builder are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2013-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interaction Collector is a registered trademark of Genesys Telecommunications Laboratories, Inc. Interaction Decisions is a trademark of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2013-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. Interactive Intelligence Bridge Server and Interaction Connect are trademarks of Genesys Telecommunications Laboratories, Inc. The foregoing products are 2014-2017 Genesys Telecommunications Laboratories, Inc. All rights reserved. The verypdf product is 2000-2017 verypdf, Inc. All rights reserved. This product includes software licensed under the Common Development and Distribution License (6/24/2009). We hereby agree to indemnify the Initial Developer and every Contributor of the software licensed under the Common Development and Distribution License (6/24/2009) for any liability incurred by the Initial Developer or such Contributor as a result of any such terms we offer. The source code for the included software may be found at http://wpflocalization.codeplex.com. A database is incorporated in this software which is derived from a database licensed from Hexasoft Development Sdn. Bhd. ("HDSB"). All software and technologies used by HDSB are the properties of HDSB or its software suppliers and are protected by Malaysian and international copyright laws. No warranty is provided that the Databases are free of defects, or fit for a particular purpose. HDSB shall not be liable for any damages suffered by the Licensee or any third party resulting from use of the Databases. Other brand and/or product names referenced in this document are the trademarks or registered trademarks of their respective companies. DISCLAIMER GENESYS TELECOMMUNICATIONS LABORATORIES (GENESYS) HAS NO RESPONSIBILITY UNDER WARRANTY, INDEMNIFICATION OR OTHERWISE, FOR MODIFICATION OR CUSTOMIZATION OF ANY GENESYS SOFTWARE BY GENESYS, CUSTOMER OR ANY THIRD PARTY EVEN IF SUCH CUSTOMIZATION AND/OR MODIFICATION IS DONE USING GENESYS TOOLS, TRAINING OR METHODS DOCUMENTED BY GENESYS. Genesys Telecommunications Laboratories, Inc. 2001 Junipero Serra Boulevard Daly City, CA 94014 Telephone/Fax (844) 274-5992 www.genesys.com Interaction Designer REST API Tools Developer's Guide ii

Table of Contents Introduction... 1 CIC REST Implementation... 1 REST Handler Best Practices... 1 Proxy Awareness... 1 REST HTTP Request... 1 REST HTTP Request Example... 2 Bearer Token Request... 4 JSON Parser... 5 JSON Parser Example... 6 JSON Builder... 6 JSON Builder Example... 7 Array Parser... 7 Array Parser Example... 7 Array Builder... 8 Array Builder Example... 8 Change Log... 10 Interaction Designer REST API Tools Developer's Guide iii

Introduction This document is for developers who want to use Customer Interaction Center s REST capabilities to build handlers that can communicate with external RESTful APIs. For example, these tools allow CIC to communicate directly with the Salesforce API. RESTful APIs are an alternative to SOAP-based APIs. RESTful APIs use standard HTTP methods, such as GET, PUT, POST, and DELETE to communicate, and provide endpoints, such as http://api.example.com/user/120 for accessing and updating data. They typically use JSON as the data format, but can use other formats. Customer Interaction Center s REST functionality removes the need to develop middleware for communicating with RESTful APIs. CIC REST Implementation The CIC REST tools: Support GET, POST, PUT, and DELETE. The tools do not support other methods. Support Oauth2. The tools do not support OAuth1. Provide JSON and array-parsing tools. The tools do not support other formats. CIC provides six tools for building handlers that make requests to and consume data from RESTful APIs: REST HTTP Request Bearer Token Request JSON Parser JSON Builder Array Parser Array Builder This document provides examples of using these tools in handlers. For more information about the inputs, outputs, and exit paths of each tool, see the Interaction Designer help. REST Handler Best Practices Familiarize yourself with the API you want to communicate with. For example, some APIs receive parameters in the URL itself, while others take parameters in the header. This behavior has an impact on tool inputs. Be aware of any incompatibilities between an API and the CIC REST tools. For example, these tools do not support OAuth1. Proxy Awareness REST HTTP Request and Bearer Token Request include an optional Proxy Uri parameter where you can enter a forward proxy address for retrieving content from the API server. The parameter must include the protocol used. For example, http://proxy.example.com or http://192.168.1.10. REST HTTP Request Use the REST HTTP Request tool to send a request to an external REST service. You can optionally use client certificates with this tool. The REST HTTP Request tool: Interaction Designer REST API Tools Developer's Guide 1

Expects the certificate file to exist in a specific directory: $Server/IC/Certificates/SOAP. Use the CertTrustU.exe to install a client certificate. The certificate must be in PEM format. For more information, see the PureConnect Security Features Technical Reference in the PureConnect Documentation Library. Supports many concurrent requests. Does not use the Windows Certificate store to check for validity of the certificate. Uses openssl to do the verification. REST HTTP Request Example This example makes a request to the Twitter API. It uses the following variables: Interaction Designer REST API Tools Developer's Guide 2

REST HTTP Request inputs REST HTTP Request inputs continued Interaction Designer REST API Tools Developer's Guide 3

Bearer Token Request Use this tool to request an OAuth 2.0 access bearer token for a client credentials grant or a password grant. This tool returns a parsed token that you can use in the Bearer Token parameter in the REST HTTP Request tool. Like the REST HTTP Request tool, this tool: Expects the certificate file to exist in a specific directory: $Server/IC/Certificates/SOAP. Use the CertTrustU.exe to install a client certificate. The certificate must be in PEM format. For more information, see PureConnect Security Features Technical Reference in the PureConnect Documentation Library. Supports many concurrent requests. Does not use the Windows Certificate store to check for validity of the certificate Uses openssl to do the verification. In the following example, the handler makes a request to Twitter for a client credentials grant. Bearer Token Request Inputs Interaction Designer REST API Tools Developer's Guide 4

Bearer Token Request Inputs continued Variables for Bearer Token Request example JSON Parser This REST tool outputs a list of names and a list of values from a JSON object. If you have nested objects, the parser places the entire nested object in the values list as a string. To parse nested JSON objects fully, use multiple JSON Parser steps. Interaction Designer REST API Tools Developer's Guide 5

Important: Names must be unique. If names aren t unique, JSON Parser does not throw an error, but the JSON is not correctly parsed. For example, { user : johndoe, user : janedoe } does not cause an error, but is not parsed correctly. Starting with Interaction Designer 2017 R3, JSON Parser can parse a JSON object that includes these keywords: break, case, catch, class, const, continue, debugger, default, delete, do, else, enum, export, extends, finally, for, function, if, implements, import, in, instanceof, interface, let, new, package, private, protected, public, return, static, super, switch, this, throw, try, var, void, while, with, yield. Previously, a JSON object that contained a keyword would cause the JSON Parser to exit with the failure path. JSON Parser Example Given the following JSON object, JSON Parser returns three list of string variables: one for the names, one for the values, and one for the data types of each item. { "user": "johndoe", "admin": false, "uid": 1000, "groups": ["users", "wheel", "audio", "video"], "innerjson": { "observer": "janedoe", "readonly": true, "uid": 1001, "watchlists": ["Aveeno", "Purell", "Blistex", "Carmex"] } } JSON Builder This REST tool accepts a list of names and a list of values (and the value data types) to build a JSON object of name/value pairs. Interaction Designer REST API Tools Developer's Guide 6

JSON Builder Example Given the input variables in the JSON Parser example, JSON Builder produces a JSON object: Resulting object: { "user": "johndoe", "admin": false, "uid": 1000, "groups": ["users", "wheel", "audio", "video"], "innerjson": { "observer": "janedoe", "readonly": true, "uid": 1001, "watchlists": ["Aveeno", "Purell", "Blistex", "Carmex"] } } Array Parser This REST tool outputs a list of values from an array. This tool parses the name/value pairs and inner JSON alphabetically by name. Array Parser Example The handler used in the array examples has the following variables: Interaction Designer REST API Tools Developer's Guide 7

Variables for array examples Given the following array, Array Parser returns list of string variables for the names, values, and data types of the array items. ["green", 10, false, {"user": "johndoe", "admin": false, "uid": 1000,"groups": ["users", "wheel", "audio", "video"]}, ["Aveeno", "Purell", "Blistex", "Carmex"]] Array Builder This REST tool accepts a list of values to build an array object of values. This tool builds the name/value pairs and inner JSON alphabetically by name. Array Builder Example Given the variables in the Array Parser example, Array Builder outputs an array: Resulting array: Interaction Designer REST API Tools Developer's Guide 8

["green", 10, false, {"user": "johndoe", "admin": false, "uid": 1000,"groups": ["users", "wheel", "audio", "video"]}, ["Aveeno", "Purell", "Blistex", "Carmex"]] Interaction Designer REST API Tools Developer's Guide 9

Change Log The following changes have been made to Interaction Designer REST API Tools Developer s Guide since its initial release. Change Date Initial release of this document. June 2016 Updated JSON Parser to list keywords. 12/21/16 Updated cover page, copyright and trademark information. Rebranded this document to apply Genesys terminology. 8/2017 Interaction Designer REST API Tools Developer's Guide 10