Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Change all references from Assistly to Desk #6

Merged
merged 4 commits into from

3 participants

@bobbytables

No description provided.

@chriswarren chriswarren merged commit 26b5715 into chriswarren:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 24, 2012
  1. @andrewpbrett
  2. @andrewpbrett
  3. Merge pull request #2 from andrewpbrett/master

    Robert Ross authored
    Global sub of assistly.com for desk.com
  4. Merge pull request #1 from andrewpbrett/patch-1

    Robert Ross authored
    assistly.com is now desk.com
This page is out of date. Refresh to see the latest.
View
10 README.mkd
@@ -1,6 +1,6 @@
The Assistly Ruby Gem
====================
-A Ruby wrapper for the [Assistly API](http://dev.assistly.com/)
+A Ruby wrapper for the [Assistly API](http://dev.desk.com/)
Installation
------------
@@ -42,7 +42,7 @@ Added the ability to create outbound communications over email
What's new in 0.1?
------------------
-This is the first release of the Assistly gem, based on the [Twitter gem](http://github.com/jnunemaker/twitter). Support for most of the [Assistly API](http://dev.assistly.com/docs/api) are handled.
+This is the first release of the Assistly gem, based on the [Twitter gem](http://github.com/jnunemaker/twitter). Support for most of the [Assistly API](http://dev.desk.com/docs/api) are handled.
There is not yet support for Content or Macros.
Help! I'm getting: "Did not recognize your engine specification. Please specify either a symbol or a class. (RuntimeError)"
@@ -56,7 +56,7 @@ Usage Examples
require "assistly"
# All methods require authentication. To get your Assistly OAuth credentials,
- # register an app in the Assistly admin for your account at http://your-domain.assistly.com/admin
+ # register an app in the Assistly admin for your account at http://your-domain.desk.com/admin
Assistly.configure do |config|
config.support_email = "help@example.com"
config.subdomain = YOUR_ASSISTLY_SUBDOMAIN
@@ -125,8 +125,8 @@ Usage Examples
# Assistly's API doesn't support creating outbound communications, so we do this over email with a BCC back to Assistly and customer headers.
# Assistly.support_email must be set to your Assistly email address so that the email can be sent to the account and give the customer someone to respond to.
#
- # Read more at http://support.assistly.com/customer/portal/articles/4180
- # Additional headers can be passed as well http://support.assistly.com/customer/portal/articles/6728
+ # Read more at http://support.desk.com/customer/portal/articles/4180
+ # Additional headers can be passed as well http://support.desk.com/customer/portal/articles/6728
#
# Email is sent using Pony https://github.com/benprew/pony
Assistly.create_interaction(:interaction_subject => "Missed Your Call", :customer_email => "foo@example.com", :interaction_body => "Sorry we missed yoru call. What's up?", :direction => "outbound")
View
2  lib/assistly/api.rb
@@ -18,7 +18,7 @@ def initialize(options={})
end
def endpoint
- "https://#{self.subdomain}.assistly.com/api/#{self.version}/"
+ "https://#{self.subdomain}.desk.com/api/#{self.version}/"
end
include Connection
View
4 lib/assistly/client.rb
@@ -1,8 +1,8 @@
module Assistly
# Wrapper for the Assistly REST API
#
- # @note All methods have been separated into modules and follow the same grouping used in {http://dev.assistly.com/doc the Assistly API Documentation}.
- # @see http://dev.assistly.com/pages/every_developer
+ # @note All methods have been separated into modules and follow the same grouping used in {http://dev.desk.com/doc the Assistly API Documentation}.
+ # @see http://dev.desk.com/pages/every_developer
class Client < API
# Require client method modules after initializing the Client class in
# order to avoid a superclass mismatch error, allowing those modules to be
View
10 lib/assistly/client/article.rb
@@ -12,7 +12,7 @@ module Article
# Assistly.articles(:count => 5, :page => 3)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/articles
+ # @see http://dev.desk.com/docs/api/topics/articles
def articles(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("topics/#{id}/articles",options)
@@ -28,7 +28,7 @@ def articles(id, *args)
# Assistly.article(12345, :by => "external_id")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/articles/show
+ # @see http://dev.desk.com/docs/api/articles/show
def article(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("articles/#{id}",options)
@@ -45,7 +45,7 @@ def article(id, *args)
# Assistly.create_article(1, :subject => "API Tips", :main_content => "Tips on using our API")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/articles/create
+ # @see http://dev.desk.com/docs/api/articles/create
def create_article(topic_id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = post("topics/#{topic_id}/articles",options)
@@ -64,7 +64,7 @@ def create_article(topic_id, *args)
# Assistly.update_article(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/articles/update
+ # @see http://dev.desk.com/docs/api/articles/update
def update_article(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("articles/#{id}",options)
@@ -82,7 +82,7 @@ def update_article(id, *args)
# Assistly.update_article(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/articles/update
+ # @see http://dev.desk.com/docs/api/articles/update
def delete_article(id)
response = delete("articles/#{id}")
response
View
8 lib/assistly/client/case.rb
@@ -11,7 +11,7 @@ module Case
# Assistly.cases(:since_id => 12345)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/cases/show
+ # @see http://dev.desk.com/docs/api/cases/show
def cases(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("cases",options)
@@ -26,7 +26,7 @@ def cases(*args)
# Assistly.case(12345, :by => "external_id")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/cases/show
+ # @see http://dev.desk.com/docs/api/cases/show
def case(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("cases/#{id}",options)
@@ -40,7 +40,7 @@ def case(id, *args)
# Assistly.update_case(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/cases/update
+ # @see http://dev.desk.com/docs/api/cases/update
def update_case(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("cases/#{id}",options)
@@ -48,7 +48,7 @@ def update_case(id, *args)
end
def case_url(id)
- "https://#{subdomain}.assistly.com/agent/case/#{id}"
+ "https://#{subdomain}.desk.com/agent/case/#{id}"
end
end
end
View
12 lib/assistly/client/customer.rb
@@ -10,7 +10,7 @@ module Customer
# Assistly.customers(:since_id => 12345, :count => 5)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers
+ # @see http://dev.desk.com/docs/api/customers
def customers(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("customers",options)
@@ -24,7 +24,7 @@ def customers(*args)
# Assistly.customer(12345)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers/show
+ # @see http://dev.desk.com/docs/api/customers/show
def customer(id)
response = get("customers/#{id}")
response.customer
@@ -37,7 +37,7 @@ def customer(id)
# Assistly.create_customer(:name => "Chris Warren", :twitter => "cdwarren")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers/create
+ # @see http://dev.desk.com/docs/api/customers/create
def create_customer(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = post("customers",options)
@@ -55,7 +55,7 @@ def create_customer(*args)
# Assistly.update_customer(12345, :name => "Christopher Warren")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers/update
+ # @see http://dev.desk.com/docs/api/customers/update
def update_customer(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("customers/#{id}",options)
@@ -73,7 +73,7 @@ def update_customer(id, *args)
# Assistly.create_customer_email(12345, "foo@example.com")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers/emails/create
+ # @see http://dev.desk.com/docs/api/customers/emails/create
def create_customer_email(id, email, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
options.merge!({:email => email})
@@ -93,7 +93,7 @@ def create_customer_email(id, email, *args)
# Assistly.update_customer_email(12345, 12345, :customer_contact_type => "work")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/customers/emails/update
+ # @see http://dev.desk.com/docs/api/customers/emails/update
def update_customer_email(id, email_id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("customers/#{id}/emails/#{email_id}",options)
View
8 lib/assistly/client/interaction.rb
@@ -11,7 +11,7 @@ module Interaction
# Assistly.interactions(:since_id => 12345, :count => 5)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/interactions
+ # @see http://dev.desk.com/docs/api/interactions
def interactions(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("interactions",options)
@@ -38,7 +38,7 @@ def create_interaction(*args)
# @authenticated true
# @rate_limited true
# @return [Array] The requested users.
- # @see http://dev.assistly.com/docs/api/interactions/create
+ # @see http://dev.desk.com/docs/api/interactions/create
# @example Create a new interaction
# Assistly.create_interaction(:interaction_subject => "this is an api test", :customer_email => "foo@example.com")
def create_inbound_interaction(*args)
@@ -57,8 +57,8 @@ def create_inbound_interaction(*args)
# so we'll use send an email to the customer directly that is BCC'd to the support email address
# which will create the ticket
#
- # @see http://support.assistly.com/customer/portal/articles/4180
- # @see http://support.assistly.com/customer/portal/articles/6728
+ # @see http://support.desk.com/customer/portal/articles/4180
+ # @see http://support.desk.com/customer/portal/articles/6728
def create_outbound_interaction(to, subject, body, *args)
raise Assistly::SupportEmailNotSet if support_email.blank?
options = args.last.is_a?(Hash) ? args.pop : {}
View
16 lib/assistly/client/macro.rb
@@ -11,7 +11,7 @@ module Macro
# Assistly.macros(:count => 5, :page => 3)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros
+ # @see http://dev.desk.com/docs/api/macros
def macros(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("macros",options)
@@ -26,7 +26,7 @@ def macros(*args)
# Assistly.macro(12345)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/show
+ # @see http://dev.desk.com/docs/api/macros/show
def macro(id)
response = get("macros/#{id}")
response.macro
@@ -41,7 +41,7 @@ def macro(id)
# Assistly.create_macro("name")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/create
+ # @see http://dev.desk.com/docs/api/macros/create
def create_macro(name, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = post("macros",options)
@@ -60,7 +60,7 @@ def create_macro(name, *args)
# Assistly.update_macro(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/update
+ # @see http://dev.desk.com/docs/api/macros/update
def update_macro(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("macros/#{id}",options)
@@ -78,7 +78,7 @@ def update_macro(id, *args)
# Assistly.update_macro(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/update
+ # @see http://dev.desk.com/docs/api/macros/update
def delete_macro(id)
response = delete("macros/#{id}")
response
@@ -97,7 +97,7 @@ def delete_macro(id)
# Assistly.macro_actions(1, :count => 5, :page => 3)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/actions
+ # @see http://dev.desk.com/docs/api/macros/actions
def macro_actions(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("macros/#{id}/actions",options)
@@ -112,7 +112,7 @@ def macro_actions(id, *args)
# Assistly.macro_action(12345, "set-case-description")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/actions/show
+ # @see http://dev.desk.com/docs/api/macros/actions/show
def macro_action(id, slug)
response = get("macros/#{id}/actions/#{slug}")
response['action']
@@ -126,7 +126,7 @@ def macro_action(id, slug)
# Assistly.update_macro_action(12345, "set-case-description", :value => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/macros/actions/update
+ # @see http://dev.desk.com/docs/api/macros/actions/update
def update_macro_action(id, slug, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("macros/#{id}/actions/#{slug}",options)
View
10 lib/assistly/client/topic.rb
@@ -11,7 +11,7 @@ module Topic
# Assistly.topics(:count => 5, :page => 3)
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/show
+ # @see http://dev.desk.com/docs/api/topics/show
def topics(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("topics",options)
@@ -27,7 +27,7 @@ def topics(*args)
# Assistly.topic(12345, :by => "external_id")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/show
+ # @see http://dev.desk.com/docs/api/topics/show
def topic(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("topics/#{id}",options)
@@ -43,7 +43,7 @@ def topic(id, *args)
# Assistly.create_topic("name", :description => "description")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/create
+ # @see http://dev.desk.com/docs/api/topics/create
def create_topic(name, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = post("topics",options)
@@ -62,7 +62,7 @@ def create_topic(name, *args)
# Assistly.update_topic(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/update
+ # @see http://dev.desk.com/docs/api/topics/update
def update_topic(id, *args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = put("topics/#{id}",options)
@@ -80,7 +80,7 @@ def update_topic(id, *args)
# Assistly.update_topic(12345, :subject => "New Subject")
# @format :json
# @authenticated true
- # @see http://dev.assistly.com/docs/api/topics/update
+ # @see http://dev.desk.com/docs/api/topics/update
def delete_topic(id)
response = delete("topics/#{id}")
response
View
4 lib/assistly/client/user.rb
@@ -12,7 +12,7 @@ module User
# Assistly.user(12345)
# @format :json, :xml
# @authenticated true
- # @see http://dev.assistly.com/docs/api/users/show
+ # @see http://dev.desk.com/docs/api/users/show
def user(id,*args)
options = args.last.is_a?(Hash) ? args.pop : {}
response = get("users/#{id}",options)
@@ -25,7 +25,7 @@ def user(id,*args)
# @authenticated true
# @rate_limited true
# @return [Array] The requested users.
- # @see http://dev.assistly.com/docs/api/users
+ # @see http://dev.desk.com/docs/api/users
# @example Return extended information account users
# Assistly.users
def users(*args)
View
2  lib/assistly/error.rb
@@ -45,7 +45,7 @@ class NotAcceptable < Error; end
class EnhanceYourCalm < Error
# The number of seconds your application should wait before requesting date from the Search API again
#
- # @see http://dev.Assistly.com/pages/rate-limiting
+ # @see http://dev.desk.com/pages/rate-limiting
def retry_after
@http_headers.values_at('retry-after', 'Retry-After').detect {|value| value }.to_i
end
View
2  spec/assistly/client/case_spec.rb
@@ -89,7 +89,7 @@
context "generating a case url" do
it "should make a correct url for the case" do
- @client.case_url(123).should == "https://example.assistly.com/agent/case/123"
+ @client.case_url(123).should == "https://example.desk.com/agent/case/123"
end
end
View
4 spec/assistly_spec.rb
@@ -55,7 +55,7 @@
end
it "should change the endpoint" do
- Assistly.endpoint.should == "https://zencoder.assistly.com/api/#{Assistly::Configuration::DEFAULT_VERSION}/"
+ Assistly.endpoint.should == "https://zencoder.desk.com/api/#{Assistly::Configuration::DEFAULT_VERSION}/"
end
end
@@ -82,7 +82,7 @@
end
it "should change the endpoint" do
- Assistly.endpoint.should == "https://#{Assistly::Configuration::DEFAULT_SUBDOMAIN}.assistly.com/api/v4/"
+ Assistly.endpoint.should == "https://#{Assistly::Configuration::DEFAULT_SUBDOMAIN}.desk.com/api/v4/"
end
end
View
2  spec/fixtures/customer_create.json
@@ -14,7 +14,7 @@
{
"created_at":"2011-01-04T21:35:41Z",
"customer_contact_type":"home",
- "email":"john.smith@assistly.com",
+ "email":"john.smith@desk.com",
"updated_at":"2011-01-04T21:35:41Z",
"verified_at":null
}
View
2  spec/fixtures/customer_update.json
@@ -14,7 +14,7 @@
{
"created_at":"2011-02-09T17:06:22Z",
"customer_contact_type":"work",
- "email":"support@assistly.com",
+ "email":"support@desk.com",
"id":1,
"updated_at":"2011-02-09T17:06:22Z",
"verified_at":null
View
2  spec/fixtures/interaction_create.json
@@ -100,7 +100,7 @@
"bcc": null,
"cc": null,
"to": null,
- "from": "testapi@assistly.com",
+ "from": "testapi@desk.com",
"reply_to": null,
"in_reply_to": null,
"sender": null,
View
22 spec/fixtures/interactions.json
@@ -36,23 +36,23 @@
"email": {
"bcc": null,
"cc": null,
- "to": "JTest 01 <jtest01@assistly.com>",
- "from": "Jeremy Suriel <jeremy@assistly.com>",
+ "to": "JTest 01 <jtest01@desk.com>",
+ "from": "Jeremy Suriel <jeremy@desk.com>",
"reply_to": null,
"in_reply_to": null,
"sender": null,
- "message_id": "<DB902A25-E373-4E49-B45D-B99C0FDAE873@assistly.com>",
+ "message_id": "<DB902A25-E373-4E49-B45D-B99C0FDAE873@desk.com>",
"uid": 2479,
"subject": "Please help me",
"body_text": "What color is the sky?\n\n\nJeremy Suriel \nChief Architect \u2022 Assist.ly\ntwitter.com/jrmey\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"body_html": "",
"body": "What color is the sky?\n\n\nJeremy Suriel \nChief Architect \u2022 Assist.ly\ntwitter.com/jrmey\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
- "header": "Delivered-To: jtest01@assistly.com\r\nReceived: by 10.204.62.68 with SMTP id w4cs129345bkh; Tue, 31 Aug 2010\r\n 08:43:56 -0700 (PDT)\r\nReceived: by 10.114.13.14 with SMTP id 14mr7016661wam.157.1283269433994; Tue, \r\n 31 Aug 2010 08:43:53 -0700 (PDT)\r\nReturn-Path: <jeremy@assistly.com>\r\nReceived: from mail-px0-f170.google.com (mail-px0-f170.google.com\r\n [209.85.212.170 ]",
+ "header": "Delivered-To: jtest01@desk.com\r\nReceived: by 10.204.62.68 with SMTP id w4cs129345bkh; Tue, 31 Aug 2010\r\n 08:43:56 -0700 (PDT)\r\nReceived: by 10.114.13.14 with SMTP id 14mr7016661wam.157.1283269433994; Tue, \r\n 31 Aug 2010 08:43:53 -0700 (PDT)\r\nReturn-Path: <jeremy@desk.com>\r\nReceived: from mail-px0-f170.google.com (mail-px0-f170.google.com\r\n [209.85.212.170 ]",
"sent_at": "2010-08-31T15:43:49Z",
"created_at": "2010-08-31T15:44:04Z",
"updated_at": "2010-08-31T15:44:04Z",
"x_mailer": "Apple Mail (2.1081)",
- "delivered_to": "JTest 01 <jtest01@assistly.com>",
+ "delivered_to": "JTest 01 <jtest01@desk.com>",
"interaction_direction": "in",
"hidden_at": null,
"hidden_by_id": null
@@ -91,7 +91,7 @@
"id": 1,
"name": "Agent Jeremy",
"name_public": "Agent Jeremy",
- "email": "jeremy+agent1@assistly.com",
+ "email": "jeremy+agent1@desk.com",
"created_at": "2009-11-25T14:58:39Z",
"updated_at": "2010-08-31T15:44:59Z",
"user_level": "sysadmin",
@@ -107,16 +107,16 @@
"email": {
"bcc": "",
"cc": "",
- "to": "Jeremy Suriel <jeremy@assistly.com>",
- "from": "JTest 01 <jtest01@assistly.com>",
+ "to": "Jeremy Suriel <jeremy@desk.com>",
+ "from": "JTest 01 <jtest01@desk.com>",
"reply_to": null,
- "in_reply_to": "<DB902A25-E373-4E49-B45D-B99C0FDAE873@assistly.com>",
+ "in_reply_to": "<DB902A25-E373-4E49-B45D-B99C0FDAE873@desk.com>",
"sender": null,
"message_id": "<4c7d237242eb3_160d867bebe4121@jeremy.assistly.local>",
"uid": null,
"subject": "Re: Please help me",
- "body_text": "\n\n__________________________________\nPlease type your reply at the top of the email...\n------------------------------------------------------\n \n \n\nAgent Jeremy | AUG 31,2010 03:44PM UTC\n\n\nBlue!\n\n\n------------------------------------------------------\n\n\n \n\n\nSales | AUG 31,2010 03:44PM UTC | Original message \n \n\n\nWhat color is the sky?\n\n\nJeremy Suriel \nChief Architect \u2022 Assist.ly\ntwitter.com/jrmey\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n------------------------------------------------------\nFor your reference this is Case #: 1811\n------------------------------------------------------\n\nSupport powered by Assistly (http://www.assistly.com/)\n\n [ [ cc11a56264793ec471701942ec80bd4e9e7194a5-1975 ] ]",
- "body_html": "<div style='color:#ffffff'>__________________________________</div><div style=\"color: #222; font-family: 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif; font-size:12px; width:800px;\">\n\t<div style=\"color: #ff0000; margin: 0px 0px 10px 10px;\">\n\t\tPlease type your reply at the top of the email...\n\t</div>\n\t<div style=\"border-bottom: dotted 2px #bbb; margin:0px 0px 15px 10px;\"></div>\n\t\n\t\n\t\n\t<div style=\"line-height: 18px; margin-left: 10px;\">\n\t\t<div style=\"font-size: 14px; font-weight: bold; \">\n\t\t\tAgent Jeremy\n\t\t</div>\n\t\t<div style=\"color: #777; font-size: 10px; margin-bottom: 10px;\">\n\t\t\tAUG 31, 2010 &nbsp;|&nbsp; 11:44AM EDT</div>\t\t\n\t\t<div>\n\t\t\tBlue!\n\t\t</div>\n\t</div>\n\t<div style=\"clear:left\"></div>\n\t<div style=\"border-top: solid 2px #e8f6f9; margin: 10px 0px 0px 10px;\"></div>\n\t<div style=\"border-bottom: solid 1px #ddd; margin: 0px 0px 15px 10px;\"></div>\n\n\n\t\n\t\n\t\n\t<div style=\"line-height: 18px; margin-left: 10px;\">\n\t\t<div style=\"font-size: 14px; font-weight: bold; \">\n\t\t\t\n\t\t\tSales\n\t\t\n\t\t</div>\n\t\t<div style=\"color: #777; font-size: 10px; margin-bottom: 10px;\">\n\t\t\tAUG 31, 2010 &nbsp;|&nbsp; 03:44PM UTC\n\t\t\t\n\t\t\t<br />\n\t\t\t<span style=\"background-color: #d8f4fa;\">Original message</span>\n\t\t\t\n\t\t</div>\n\n\n\t\t\t\n\t\t<div style=\"color: #777;\">\n\t\t\n\t\t\tWhat color is the sky?<br/><br/><br/>Jeremy Suriel <br/>Chief Architect \u2022 Assist.ly<br/>twitter.com/jrmey<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>\n\t\t</div>\n\t</div>\n\t<div style=\"border-top: solid 2px #e8f6f9; margin: 15px 0px 0px 10px;\"></div>\n\t<div style=\"border-bottom: solid 1px #ddd; margin: 0px 0px 15px 10px;\"></div>\n\t\n\t\t\t\n\t<div style=\"color: #777; font-size: 10px; margin: 0px 0px 15px 10px;\">\n\t\tFor your reference this is Case #: <span style=\"background-color: #d8f4fa;\">1811</span>\n\t</div>\n\t<div style=\"border-bottom: dotted 2px #bbb; margin: 15px 0px 0px 10px;\"></div>\n\t<div style=\"color: #bbb; font-size: 12px; margin-top: 15px; text-align: center;\">\n\t\tSupport powered by <a href=\"http://www.assistly.com/\" style=\"color: #0397D6;\">Assistly</a>\n\t</div>\n</div><span style='color:#ffffff'></span>",
+ "body_text": "\n\n__________________________________\nPlease type your reply at the top of the email...\n------------------------------------------------------\n \n \n\nAgent Jeremy | AUG 31,2010 03:44PM UTC\n\n\nBlue!\n\n\n------------------------------------------------------\n\n\n \n\n\nSales | AUG 31,2010 03:44PM UTC | Original message \n \n\n\nWhat color is the sky?\n\n\nJeremy Suriel \nChief Architect \u2022 Assist.ly\ntwitter.com/jrmey\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n------------------------------------------------------\nFor your reference this is Case #: 1811\n------------------------------------------------------\n\nSupport powered by Assistly (http://www.desk.com/)\n\n [ [ cc11a56264793ec471701942ec80bd4e9e7194a5-1975 ] ]",
+ "body_html": "<div style='color:#ffffff'>__________________________________</div><div style=\"color: #222; font-family: 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif; font-size:12px; width:800px;\">\n\t<div style=\"color: #ff0000; margin: 0px 0px 10px 10px;\">\n\t\tPlease type your reply at the top of the email...\n\t</div>\n\t<div style=\"border-bottom: dotted 2px #bbb; margin:0px 0px 15px 10px;\"></div>\n\t\n\t\n\t\n\t<div style=\"line-height: 18px; margin-left: 10px;\">\n\t\t<div style=\"font-size: 14px; font-weight: bold; \">\n\t\t\tAgent Jeremy\n\t\t</div>\n\t\t<div style=\"color: #777; font-size: 10px; margin-bottom: 10px;\">\n\t\t\tAUG 31, 2010 &nbsp;|&nbsp; 11:44AM EDT</div>\t\t\n\t\t<div>\n\t\t\tBlue!\n\t\t</div>\n\t</div>\n\t<div style=\"clear:left\"></div>\n\t<div style=\"border-top: solid 2px #e8f6f9; margin: 10px 0px 0px 10px;\"></div>\n\t<div style=\"border-bottom: solid 1px #ddd; margin: 0px 0px 15px 10px;\"></div>\n\n\n\t\n\t\n\t\n\t<div style=\"line-height: 18px; margin-left: 10px;\">\n\t\t<div style=\"font-size: 14px; font-weight: bold; \">\n\t\t\t\n\t\t\tSales\n\t\t\n\t\t</div>\n\t\t<div style=\"color: #777; font-size: 10px; margin-bottom: 10px;\">\n\t\t\tAUG 31, 2010 &nbsp;|&nbsp; 03:44PM UTC\n\t\t\t\n\t\t\t<br />\n\t\t\t<span style=\"background-color: #d8f4fa;\">Original message</span>\n\t\t\t\n\t\t</div>\n\n\n\t\t\t\n\t\t<div style=\"color: #777;\">\n\t\t\n\t\t\tWhat color is the sky?<br/><br/><br/>Jeremy Suriel <br/>Chief Architect \u2022 Assist.ly<br/>twitter.com/jrmey<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>\n\t\t</div>\n\t</div>\n\t<div style=\"border-top: solid 2px #e8f6f9; margin: 15px 0px 0px 10px;\"></div>\n\t<div style=\"border-bottom: solid 1px #ddd; margin: 0px 0px 15px 10px;\"></div>\n\t\n\t\t\t\n\t<div style=\"color: #777; font-size: 10px; margin: 0px 0px 15px 10px;\">\n\t\tFor your reference this is Case #: <span style=\"background-color: #d8f4fa;\">1811</span>\n\t</div>\n\t<div style=\"border-bottom: dotted 2px #bbb; margin: 15px 0px 0px 10px;\"></div>\n\t<div style=\"color: #bbb; font-size: 12px; margin-top: 15px; text-align: center;\">\n\t\tSupport powered by <a href=\"http://www.desk.com/\" style=\"color: #0397D6;\">Assistly</a>\n\t</div>\n</div><span style='color:#ffffff'></span>",
"body": "Blue!",
"header": null,
"sent_at": "2010-08-31T15:45:17Z",
View
2  spec/fixtures/users.json
@@ -7,7 +7,7 @@
"id":1,
"name":"Test User",
"name_public":"Test User",
- "email":"testuser@assistly.com",
+ "email":"testuser@desk.com",
"created_at":"2011-01-28T16:30:16Z",
"updated_at":"2011-01-28T16:31:09Z",
"user_level":"siteadmin_billing",
Something went wrong with that request. Please try again.