Support Center

Rack Middleware for interacting with the Zendesk API

Basic Usage

Support Center requires a config block in the following format:

require 'support_center'

SupportCenter.setup do |config|
  config.environment = ENV['RACK_ENV'] # optional
  config.config_service_adapter = {username: '[email protected]', password: 'p@ssw0rd12345', url: 'https://foo.zendesk.com/api/v2'}
end

Then add the following in your config.ru:

run Rack::URLMap.new('/' => SupportCenter.new)

If need DCMS, mount the app as Rack::Middleware after DCMS is setup:

# e.g. config/application.rb
require 'support_center/server'
use SupportCenter::Server