0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby gem to access the InContact API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

InContact API

A gem for the InContact API

Installation

Bundler

Add the gem to your Gemfile:

gem 'incontact_api'

Or

Manually

gem install incontact_api

Environment Variables

Define the following as enviroment variables.

UCN_URL

UCN_KEY

GRANT_TYPE

USERNAME

PASSWORD

SCOPE

If you are using rails you could use the Figaro gem to handle setting up environment variables.

Variable Definitions

UCN_URL: This is the base url 'https://api.incontact.com'

UCN_KEY: This is a key that is made up of Application Name@Vendor Name:Business # EX. 'MyApp@MyCompany:12345'

GRANT_TYPE: This variable is based on the types of API you request. More info can be found below in the link

USERNAME: The username to use to access the API. User must have permissions to create API Applications

PASSWORD: The password for the above username.

SCOPE: The list of API's you want to access. Format to a string for example "Admin Chat RealTime"

  • See important note below on the SCOPE variable

Link to InContacts API

Important Note

Starting April 28th InContact will be changing the string format that can be passed to the SCOPE variable.

Proper string format below:

  • RealTimeApi
  • AdminApi
  • AgentApi
  • CustomApi
  • AuthenticationApi
  • PatronApi (this is only available in 14.1 and replaces the ChatApi)
  • ChatApi (this is valid in 13.2 and is translated into PatronApi when passed in 14.1)

Usage

Returns list of agents

require 'incontact_api'

InContactApi::Connection.base.get "/inContactAPI/services/v2.0/agents"