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']
config.config_service_adapter = {username: 'foo@bar.com', 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:
require 'support_center/server'
use SupportCenter::Server