Project

icws

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper around ICWS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

= 1.8.1
 Project Readme

Gem Version Build Status

A gem that wraps up the ICWS ReST api

Examples

Making a Connection

    connection = ICWS::Connection.new APPLICATIONNAME, SERVER
    connection.connect USERID, PASSWORD

Deleting a user:

    def delete_user(id, connection)
        user_config = ICWS::Configuration::Users.new connection
        user_config.delete URI.escape id
    end

Create a Workgroup:

  def setup_workgroup(workgroup_name, extension, connection)
    workgroup_config = ICWS::Configuration::Workgroups.new connection
    workgroups = workgroup_config.get_all.select {|r| r['configurationId']['id'] == workgroup_name}

    workgroupId = workgroup_name

    if(workgroups.length ==0)
      new_workgroup = {
        :queueType => 5,
        :hasQueue => true,
        :isActive => true,
        :extension => extension
      }

      workgroup_config.create_new workgroupId, new_workgroup
    end
  end

Set a User's Status

    status = ICWS::Status.new connection
    status.set_user_status URI.escape(id), 'AVAILABLE'