desk 0.3.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/README.mkd +305 -106
  3. data/TRANSITION.mkd +133 -0
  4. data/desk.gemspec +1 -1
  5. data/lib/desk.rb +1 -1
  6. data/lib/desk/api.rb +5 -1
  7. data/lib/desk/client.rb +184 -10
  8. data/lib/desk/client/article.rb +4 -83
  9. data/lib/desk/client/brand.rb +11 -0
  10. data/lib/desk/client/case.rb +59 -42
  11. data/lib/desk/client/company.rb +11 -0
  12. data/lib/desk/client/custom_field.rb +10 -0
  13. data/lib/desk/client/customer.rb +26 -124
  14. data/lib/desk/client/facebook_user.rb +11 -0
  15. data/lib/desk/client/filter.rb +11 -0
  16. data/lib/desk/client/group.rb +3 -29
  17. data/lib/desk/client/insight.rb +17 -0
  18. data/lib/desk/client/integration_url.rb +11 -0
  19. data/lib/desk/client/job.rb +11 -0
  20. data/lib/desk/client/label.rb +11 -0
  21. data/lib/desk/client/macro.rb +3 -133
  22. data/lib/desk/client/mailbox.rb +26 -0
  23. data/lib/desk/client/rule.rb +14 -0
  24. data/lib/desk/client/site_setting.rb +11 -0
  25. data/lib/desk/client/system_message.rb +16 -0
  26. data/lib/desk/client/topic.rb +4 -81
  27. data/lib/desk/client/twitter_account.rb +11 -0
  28. data/lib/desk/client/twitter_user.rb +11 -0
  29. data/lib/desk/client/user.rb +3 -30
  30. data/lib/desk/configuration.rb +1 -1
  31. data/lib/desk/connection.rb +2 -1
  32. data/lib/desk/deash.rb +100 -0
  33. data/lib/desk/request.rb +33 -20
  34. data/lib/desk/version.rb +1 -1
  35. data/lib/faraday/request/oauth.rb +6 -3
  36. data/lib/faraday/response/deashify.rb +23 -0
  37. data/spec/desk/client/article_spec.rb +62 -117
  38. data/spec/desk/client/brand_spec.rb +18 -0
  39. data/spec/desk/client/case_spec.rb +182 -66
  40. data/spec/desk/client/companies_spec.rb +26 -0
  41. data/spec/desk/client/custom_fields_spec.rb +18 -0
  42. data/spec/desk/client/customer_spec.rb +16 -145
  43. data/spec/desk/client/facebook_users_spec.rb +17 -0
  44. data/spec/desk/client/filter_spec.rb +28 -0
  45. data/spec/desk/client/group_spec.rb +32 -49
  46. data/spec/desk/client/inbound_mailboxes_spec.rb +70 -0
  47. data/spec/desk/client/integration_url_spec.rb +28 -0
  48. data/spec/desk/client/job_spec.rb +32 -0
  49. data/spec/desk/client/label_spec.rb +31 -0
  50. data/spec/desk/client/macro_spec.rb +22 -185
  51. data/spec/desk/client/rule_spec.rb +18 -0
  52. data/spec/desk/client/site_setting_spec.rb +18 -0
  53. data/spec/desk/client/system_message_spec.rb +42 -0
  54. data/spec/desk/client/topic_spec.rb +31 -112
  55. data/spec/desk/client/twitter_account_spec.rb +32 -0
  56. data/spec/desk/client/twitter_user_spec.rb +27 -0
  57. data/spec/desk/client/user_spec.rb +19 -42
  58. data/spec/desk_spec.rb +2 -2
  59. data/spec/faraday/response_spec.rb +3 -6
  60. data/spec/fixtures/article +50 -0
  61. data/spec/fixtures/article_create +50 -0
  62. data/spec/fixtures/article_translation +29 -0
  63. data/spec/fixtures/article_translation_create +29 -0
  64. data/spec/fixtures/article_translation_update +29 -0
  65. data/spec/fixtures/article_translations +81 -0
  66. data/spec/fixtures/article_update +50 -0
  67. data/spec/fixtures/articles +123 -0
  68. data/spec/fixtures/articles_search +124 -0
  69. data/spec/fixtures/brand +11 -0
  70. data/spec/fixtures/brands +45 -0
  71. data/spec/fixtures/case +44 -0
  72. data/spec/fixtures/case_attachment +19 -0
  73. data/spec/fixtures/case_attachment_create +19 -0
  74. data/spec/fixtures/case_attachments +61 -0
  75. data/spec/fixtures/case_create +51 -0
  76. data/spec/fixtures/case_message +26 -0
  77. data/spec/fixtures/case_note +21 -0
  78. data/spec/fixtures/case_note_create +26 -0
  79. data/spec/fixtures/case_notes +65 -0
  80. data/spec/fixtures/case_replies +75 -0
  81. data/spec/fixtures/case_reply +26 -0
  82. data/spec/fixtures/case_reply_create +26 -0
  83. data/spec/fixtures/case_reply_update +26 -0
  84. data/spec/fixtures/case_update +49 -0
  85. data/spec/fixtures/cases +111 -0
  86. data/spec/fixtures/cases_search +113 -0
  87. data/spec/fixtures/companies +75 -0
  88. data/spec/fixtures/companies_search +76 -0
  89. data/spec/fixtures/company +26 -0
  90. data/spec/fixtures/company_create +26 -0
  91. data/spec/fixtures/company_search +76 -0
  92. data/spec/fixtures/company_update +27 -0
  93. data/spec/fixtures/custom_field +15 -0
  94. data/spec/fixtures/custom_fields +58 -0
  95. data/spec/fixtures/customer +60 -0
  96. data/spec/fixtures/customer_create +54 -0
  97. data/spec/fixtures/customer_update +60 -0
  98. data/spec/fixtures/customers +143 -0
  99. data/spec/fixtures/customers_search +143 -0
  100. data/spec/fixtures/facebook_user +16 -0
  101. data/spec/fixtures/facebook_users +55 -0
  102. data/spec/fixtures/filter +16 -0
  103. data/spec/fixtures/filter_cases +111 -0
  104. data/spec/fixtures/filters +55 -0
  105. data/spec/fixtures/group +9 -0
  106. data/spec/fixtures/group_filters +55 -0
  107. data/spec/fixtures/group_users +63 -0
  108. data/spec/fixtures/groups +42 -0
  109. data/spec/fixtures/inbound_mailbox +32 -0
  110. data/spec/fixtures/inbound_mailboxes +87 -0
  111. data/spec/fixtures/integration_url +15 -0
  112. data/spec/fixtures/integration_url_create +15 -0
  113. data/spec/fixtures/integration_url_update +15 -0
  114. data/spec/fixtures/integration_urls +54 -0
  115. data/spec/fixtures/job +17 -0
  116. data/spec/fixtures/job_create +17 -0
  117. data/spec/fixtures/jobs +57 -0
  118. data/spec/fixtures/label +17 -0
  119. data/spec/fixtures/label_create +17 -0
  120. data/spec/fixtures/label_update +17 -0
  121. data/spec/fixtures/labels +57 -0
  122. data/spec/fixtures/macro +20 -0
  123. data/spec/fixtures/macro_action +17 -0
  124. data/spec/fixtures/macro_action_update +17 -0
  125. data/spec/fixtures/macro_actions +57 -0
  126. data/spec/fixtures/macro_create +20 -0
  127. data/spec/fixtures/macro_update +20 -0
  128. data/spec/fixtures/macros +63 -0
  129. data/spec/fixtures/rule +13 -0
  130. data/spec/fixtures/rules +49 -0
  131. data/spec/fixtures/site_setting +10 -0
  132. data/spec/fixtures/site_settings +43 -0
  133. data/spec/fixtures/system_message +4 -0
  134. data/spec/fixtures/topic +23 -0
  135. data/spec/fixtures/topic_create +23 -0
  136. data/spec/fixtures/topic_translation +12 -0
  137. data/spec/fixtures/topic_translation_create +12 -0
  138. data/spec/fixtures/topic_translation_update +12 -0
  139. data/spec/fixtures/topic_translations +47 -0
  140. data/spec/fixtures/topic_update +23 -0
  141. data/spec/fixtures/topics +69 -0
  142. data/spec/fixtures/twitter_account +14 -0
  143. data/spec/fixtures/twitter_account_tweet +20 -0
  144. data/spec/fixtures/twitter_account_tweet_create +20 -0
  145. data/spec/fixtures/twitter_account_tweets +63 -0
  146. data/spec/fixtures/twitter_accounts +51 -0
  147. data/spec/fixtures/twitter_user +18 -0
  148. data/spec/fixtures/twitter_user_create +18 -0
  149. data/spec/fixtures/twitter_users +59 -0
  150. data/spec/fixtures/user +20 -0
  151. data/spec/fixtures/user_preference +18 -0
  152. data/spec/fixtures/user_preference_update +14 -0
  153. data/spec/fixtures/user_preferences +223 -0
  154. data/spec/fixtures/users +63 -0
  155. data/spec/helper.rb +12 -0
  156. data/spec/shared_context.rb +16 -0
  157. data/spec/shared_examples.rb +312 -0
  158. metadata +247 -181
  159. data/lib/desk/client/interaction.rb +0 -75
  160. data/spec/desk/client/interaction_spec.rb +0 -191
  161. data/spec/fixtures/article.json +0 -50
  162. data/spec/fixtures/article_create.json +0 -54
  163. data/spec/fixtures/article_destroy.json +0 -3
  164. data/spec/fixtures/article_update.json +0 -54
  165. data/spec/fixtures/articles.json +0 -58
  166. data/spec/fixtures/case.json +0 -59
  167. data/spec/fixtures/case_update.json +0 -59
  168. data/spec/fixtures/cases.json +0 -182
  169. data/spec/fixtures/customer.json +0 -58
  170. data/spec/fixtures/customer_create.json +0 -56
  171. data/spec/fixtures/customer_create_email.json +0 -15
  172. data/spec/fixtures/customer_update.json +0 -47
  173. data/spec/fixtures/customer_update_email.json +0 -15
  174. data/spec/fixtures/customers.json +0 -98
  175. data/spec/fixtures/group.json +0 -8
  176. data/spec/fixtures/groups.json +0 -23
  177. data/spec/fixtures/interaction_create.json +0 -126
  178. data/spec/fixtures/interactions.json +0 -139
  179. data/spec/fixtures/macro.json +0 -8
  180. data/spec/fixtures/macro_action.json +0 -9
  181. data/spec/fixtures/macro_action_update.json +0 -12
  182. data/spec/fixtures/macro_actions.json +0 -69
  183. data/spec/fixtures/macro_create.json +0 -13
  184. data/spec/fixtures/macro_destroy.json +0 -3
  185. data/spec/fixtures/macro_update.json +0 -13
  186. data/spec/fixtures/macros.json +0 -24
  187. data/spec/fixtures/topic.json +0 -9
  188. data/spec/fixtures/topic_create.json +0 -14
  189. data/spec/fixtures/topic_destroy.json +0 -3
  190. data/spec/fixtures/topic_update.json +0 -14
  191. data/spec/fixtures/topics.json +0 -35
  192. data/spec/fixtures/user.json +0 -15
  193. data/spec/fixtures/users.json +0 -24
@@ -1,59 +0,0 @@
1
- {
2
- "case":
3
- {
4
- "id":1,
5
- "external_id":"123",
6
- "last_available_at":"2011-02-22T22:30:09Z",
7
- "created_at":"2011-02-09T17:06:24Z",
8
- "active_at":"2011-02-22T20:27:31Z",
9
- "route_at":"2011-02-09T17:06:24Z",
10
- "first_resolved_at":null,
11
- "active_user":null,
12
- "updated_at":"2011-02-22T22:30:09Z",
13
- "case_status_at":"2011-02-14T17:28:31Z",
14
- "priority":4,
15
- "last_saved_by_id":null,
16
- "interaction_in_at":"2011-02-09T09:06:27Z",
17
- "assigned_at":"2011-02-09T17:06:24Z",
18
- "subject":"Welcome to Desk.com",
19
- "routed_at":null,
20
- "group":
21
- {
22
- "id":1,
23
- "name":"General",
24
- "created_at":"2011-02-09T17:06:04Z",
25
- "updated_at":"2011-02-09T17:06:04Z"
26
- },
27
- "user":
28
- {
29
- "id":1,
30
- "name":"Joslyn Esser",
31
- "name_public":"Joslyn Esser",
32
- "email":"joslyn@example.com",
33
- "created_at":"2011-02-09T17:02:46Z",
34
- "updated_at":"2011-02-16T19:25:10Z",
35
- "user_level":"agent",
36
- "login_count":15,
37
- "time_zone":"Pacific Time (US & Canada)",
38
- "last_login_at":"2011-02-15T23:32:51Z",
39
- "current_login_at":"2011-02-16T19:25:10Z"
40
- },
41
- "first_opened_at":"2011-02-14T17:28:31Z",
42
- "channel":"email",
43
- "resolved_at":null,
44
- "description":null,
45
- "customer_id":1,
46
- "closed_at":null,
47
- "changed_at":"2011-02-14T17:28:31Z",
48
- "case_status_type":"open",
49
- "labels":["Example"],
50
- "pending_at":null,
51
- "opened_at":"2011-02-14T17:28:31Z",
52
- "route_status":"available",
53
- "thread_count":1,
54
- "note_count":0,
55
- "preview":"Thanks for trying Desk.com. We hope your trial goes well and you decide to use Desk.com to wow your customers. Please let us know if there is anything we can do to make your experience better. In the meantime see the tips below for getting started",
56
- "macros":null,
57
- "articles":null
58
- }
59
- }
@@ -1,59 +0,0 @@
1
- {
2
- "case":
3
- {
4
- "id":1,
5
- "external_id":"123",
6
- "last_available_at":"2011-02-22T22:30:09Z",
7
- "created_at":"2011-02-09T17:06:24Z",
8
- "active_at":"2011-02-22T20:27:31Z",
9
- "route_at":"2011-02-09T17:06:24Z",
10
- "first_resolved_at":null,
11
- "active_user":null,
12
- "updated_at":"2011-02-22T22:30:09Z",
13
- "case_status_at":"2011-02-14T17:28:31Z",
14
- "priority":4,
15
- "last_saved_by_id":null,
16
- "interaction_in_at":"2011-02-09T09:06:27Z",
17
- "assigned_at":"2011-02-09T17:06:24Z",
18
- "subject":"Welcome to Desk.com",
19
- "routed_at":null,
20
- "group":
21
- {
22
- "id":1,
23
- "name":"General",
24
- "created_at":"2011-02-09T17:06:04Z",
25
- "updated_at":"2011-02-09T17:06:04Z"
26
- },
27
- "user":
28
- {
29
- "id":1,
30
- "name":"Joslyn Esser",
31
- "name_public":"Joslyn Esser",
32
- "email":"joslyn@example.com",
33
- "created_at":"2011-02-09T17:02:46Z",
34
- "updated_at":"2011-02-16T19:25:10Z",
35
- "user_level":"agent",
36
- "login_count":15,
37
- "time_zone":"Pacific Time (US & Canada)",
38
- "last_login_at":"2011-02-15T23:32:51Z",
39
- "current_login_at":"2011-02-16T19:25:10Z"
40
- },
41
- "first_opened_at":"2011-02-14T17:28:31Z",
42
- "channel":"email",
43
- "resolved_at":null,
44
- "description":null,
45
- "customer_id":1,
46
- "closed_at":null,
47
- "changed_at":"2011-02-14T17:28:31Z",
48
- "case_status_type":"open",
49
- "labels":["Example"],
50
- "pending_at":null,
51
- "opened_at":"2011-02-14T17:28:31Z",
52
- "route_status":"available",
53
- "thread_count":1,
54
- "note_count":0,
55
- "preview":"Thanks for trying Desk.com. We hope your trial goes well and you decide to use Desk.com to wow your customers. Please let us know if there is anything we can do to make your experience better. In the meantime see the tips below for getting started",
56
- "macros":null,
57
- "articles":null
58
- }
59
- }
@@ -1,182 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "case":
5
- {
6
- "id":1,
7
- "last_available_at":"2010-05-11T18:44:39Z",
8
- "created_at":"2009-11-25T15:00:41Z",
9
- "active_at":"2010-05-11T18:42:53Z",
10
- "route_at":"2009-11-25T15:00:41Z",
11
- "first_resolved_at":"2010-03-10T16:31:21Z",
12
- "active_user":null,
13
- "updated_at":"2010-05-11T19:35:57Z",
14
- "case_status_at":"2010-05-11T19:35:57Z",
15
- "priority":9,
16
- "last_saved_by_id":1,
17
- "interaction_in_at":"2009-11-25T15:00:41Z",
18
- "assigned_at":"2010-03-12T20:01:43Z",
19
- "subject":"Andr\u00e9 M\u00fcller test",
20
- "routed_at":null,
21
- "group":null,
22
- "user": {
23
- "id":1,
24
- "name":"Jeremy Suriel",
25
- "name_public":"Jeremy Suriel",
26
- "email":"jeremysuriel+agent1@gmail.com",
27
- "created_at":"2009-11-25T14:58:39Z",
28
- "updated_at":"2010-07-19T02:36:21Z",
29
- "user_level":"sysadmin",
30
- "login_count":561,
31
- "time_zone":"Eastern Time (US & Canada)",
32
- "last_login_at":"2010-07-18T02:06:08Z"
33
- },
34
- "first_opened_at":"2010-03-09T15:27:00Z",
35
- "channel":"chat",
36
- "resolved_at":"2010-03-10T16:31:21Z",
37
- "description":"test",
38
- "customer_id":2,
39
- "closed_at":"2010-05-11T19:35:57Z",
40
- "changed_at":"2010-05-11T19:35:57Z",
41
- "case_status_type":"closed",
42
- "labels":"test, reload",
43
- "pending_at":null,
44
- "opened_at":"2010-03-09T15:27:00Z",
45
- "route_status":"available",
46
- "thread_count":1,
47
- "note_count":1,
48
- "preview":null,
49
- "macros":["Example Macros"],
50
- "articles":["Example Kb Article"],
51
- "custom_c":"",
52
- "custom_order":""
53
- }
54
- },
55
- {
56
- "case":
57
- {
58
- "id":2,
59
- "last_available_at":"2010-03-09T16:08:51Z",
60
- "created_at":"2009-11-25T15:35:57Z",
61
- "active_at":"2010-03-09T16:08:43Z",
62
- "route_at":"2009-11-25T15:35:57Z",
63
- "first_resolved_at":null,
64
- "active_user":null,
65
- "updated_at":"2010-03-18T15:45:34Z",
66
- "case_status_at":"2010-03-09T16:08:43Z",
67
- "priority":5,
68
- "last_saved_by_id":null,
69
- "interaction_in_at":"2009-11-25T15:35:57Z",
70
- "assigned_at":null,
71
- "subject":"test2",
72
- "routed_at":null,
73
- "group":null,
74
- "user":null,
75
- "first_opened_at":"2010-03-09T16:08:43Z",
76
- "channel":"twitter",
77
- "resolved_at":null,
78
- "description":"test2",
79
- "customer_id":8,
80
- "closed_at":null,
81
- "changed_at":"2010-03-18T15:45:34Z",
82
- "case_status_type":"open",
83
- "labels":"",
84
- "pending_at":null,
85
- "opened_at":"2010-03-09T16:08:43Z",
86
- "route_status":"available",
87
- "thread_count":1,
88
- "note_count":1,
89
- "preview":null,
90
- "macros":null,
91
- "articles":null,
92
- "custom_c":null,
93
- "custom_order":null
94
- }
95
- },
96
- {
97
- "case":
98
- {
99
- "id":3,
100
- "last_available_at":null,
101
- "created_at":"2009-11-25T15:35:59Z",
102
- "active_at":null,
103
- "route_at":"2009-11-25T15:35:59Z",
104
- "first_resolved_at":null,
105
- "active_user":null,
106
- "updated_at":"2010-03-18T15:45:34Z",
107
- "case_status_at":"2010-02-23T01:26:59Z",
108
- "priority":5,
109
- "last_saved_by_id":1,
110
- "interaction_in_at":"2009-11-25T15:35:59Z",
111
- "assigned_at":null,
112
- "subject":"yo",
113
- "routed_at":null,
114
- "group":null,
115
- "user":null,
116
- "first_opened_at":"2009-11-26T15:09:01Z",
117
- "channel":"twitter",
118
- "resolved_at":null,
119
- "description":"yo",
120
- "customer_id":8,
121
- "closed_at":null,
122
- "changed_at":"2010-03-18T15:45:34Z",
123
- "case_status_type":"open",
124
- "labels":"",
125
- "pending_at":null,
126
- "opened_at":"2009-11-26T15:09:01Z",
127
- "route_status":"available",
128
- "thread_count":3,
129
- "note_count":1,
130
- "preview":"yo",
131
- "macros":null,
132
- "articles":null,
133
- "custom_c":null,
134
- "custom_order":null
135
- }
136
- },
137
- {
138
- "case":
139
- {
140
- "id":4,
141
- "last_available_at":null,
142
- "created_at":"2009-11-25T15:36:01Z",
143
- "active_at":null,
144
- "route_at":"2009-11-25T15:36:01Z",
145
- "first_resolved_at":null,
146
- "active_user":null,
147
- "updated_at":"2010-03-18T15:45:34Z",
148
- "case_status_at":"2010-02-23T01:26:59Z",
149
- "priority":5,
150
- "last_saved_by_id":1,
151
- "interaction_in_at":"2009-11-25T15:36:01Z",
152
- "assigned_at":null,
153
- "subject":"Yo yo",
154
- "routed_at":null,
155
- "group":null,
156
- "user":null,
157
- "first_opened_at":"2009-11-27T17:44:29Z",
158
- "channel":"twitter",
159
- "resolved_at":null,
160
- "description":"Yo yo",
161
- "customer_id":8,
162
- "closed_at":null,
163
- "changed_at":"2010-03-18T15:45:34Z",
164
- "case_status_type":"open",
165
- "labels":"",
166
- "pending_at":null,
167
- "opened_at":"2009-11-27T17:44:29Z",
168
- "route_status":"available",
169
- "thread_count":1,
170
- "note_count":1,
171
- "preview":null,
172
- "macros":null,
173
- "articles":null,
174
- "custom_c":null,
175
- "custom_order":null
176
- }
177
- }
178
- ],
179
- "page":1,
180
- "count":4,
181
- "total":150
182
- }
@@ -1,58 +0,0 @@
1
- {
2
- "customer": {
3
- "custom_test": null,
4
- "first_name": "Jeremy",
5
- "last_name": "Suriel",
6
- "phones": [
7
-
8
- ],
9
- "custom_order": "4",
10
- "custom_t2": "",
11
- "custom_i": "",
12
- "emails": [
13
- {
14
- "email": {
15
- "verified_at": "2009-11-27T21:41:11-05:00",
16
- "created_at": "2009-11-27T21:40:55-05:00",
17
- "updated_at": "2009-11-27T21:41:11-05:00",
18
- "customer_contact_type": "home",
19
- "email": "jeremysuriel@...com"
20
- }
21
- }
22
- ],
23
- "custom_t3": null,
24
- "custom_t": "",
25
- "addresses": [
26
- {
27
- "address": {
28
- "region": "NY",
29
- "city": "Commack",
30
- "location": "67 Harned Road, Commack, NY 11725, USA",
31
- "created_at": "2009-12-22T16:21:23-05:00",
32
- "street_2": null,
33
- "country": "US",
34
- "updated_at": "2009-12-22T16:32:37-05:00",
35
- "postalcode": "11730",
36
- "street": "67 Harned Road",
37
- "lng": "-73.196225",
38
- "customer_contact_type": "home",
39
- "lat": "40.716894"
40
- }
41
- }
42
- ],
43
- "twitters": [
44
- {
45
- "twitter": {
46
- "profile_image_url": "http://a3.twimg.com...",
47
- "created_at": "2009-11-25T10:35:56-05:00",
48
- "updated_at": "2010-05-29T22:41:55-04:00",
49
- "twitter_user_id": 12267802,
50
- "followers_count": 93,
51
- "verified": false,
52
- "login": "jrmey"
53
- }
54
- }
55
- ],
56
- "id": 8
57
- }
58
- }
@@ -1,56 +0,0 @@
1
- {
2
- "success":true,
3
- "results":
4
- {
5
- "customer":
6
- {
7
- "id":61,
8
- "first_name":"John",
9
- "last_name":"Smith",
10
- "emails":
11
- [
12
- {
13
- "email":
14
- {
15
- "created_at":"2011-01-04T21:35:41Z",
16
- "customer_contact_type":"home",
17
- "email":"john.smith@desk.com",
18
- "updated_at":"2011-01-04T21:35:41Z",
19
- "verified_at":null
20
- }
21
- }
22
- ],
23
- "phones":
24
- [
25
- {
26
- "phone":
27
- {
28
- "created_at":"2011-01-04T21:35:41Z",
29
- "customer_contact_type":"home",
30
- "phone":"123-456-7890",
31
- "updated_at":"2011-01-04T21:35:41Z"
32
- }
33
- }
34
- ],
35
- "addresses":
36
- [
37
- ],
38
- "twitters":
39
- [
40
- {
41
- "twitter":
42
- {
43
- "created_at":"2011-01-04T21:35:41Z",
44
- "followers_count":89,
45
- "login":"johnsmith",
46
- "profile_image_url":"http://a3.twimg.com/profile_images/58296943/eye_normal.jpg",
47
- "twitter_user_id":745073,
48
- "updated_at":"2011-01-04T21:35:41Z",
49
- "verified":false
50
- }
51
- }
52
- ],
53
- "custom_tier":"vip"
54
- }
55
- }
56
- }
@@ -1,15 +0,0 @@
1
- {
2
- "success":true,
3
- "results":
4
- {
5
- "email":
6
- {
7
- "created_at":"2011-02-09T17:06:22Z",
8
- "customer_contact_type":"work",
9
- "email":"api@example.com",
10
- "id":18,
11
- "updated_at":"2011-02-09T17:06:22Z",
12
- "verified_at":null
13
- }
14
- }
15
- }
@@ -1,47 +0,0 @@
1
- {
2
- "success":true,
3
- "results":
4
- {
5
- "customer":
6
- {
7
- "id":1,
8
- "first_name":"Joslyn",
9
- "last_name":"Esser",
10
- "emails":
11
- [
12
- {
13
- "email":
14
- {
15
- "created_at":"2011-02-09T17:06:22Z",
16
- "customer_contact_type":"work",
17
- "email":"support@desk.com",
18
- "id":1,
19
- "updated_at":"2011-02-09T17:06:22Z",
20
- "verified_at":null
21
- }
22
- }
23
- ],
24
- "phones":
25
- [
26
- ],
27
- "addresses":
28
- [
29
- ],
30
- "twitters":
31
- [
32
- {
33
- "twitter":
34
- {
35
- "created_at":"2011-02-09T17:06:23Z",
36
- "followers_count":896,
37
- "login":"Desk",
38
- "profile_image_url":"http://a2.twimg.com/profile_images/1231458746/Desk_Twitter_Profile_normal.png",
39
- "twitter_user_id":66799471,
40
- "updated_at":"2011-02-09T17:06:23Z",
41
- "verified":true
42
- }
43
- }
44
- ]
45
- }
46
- }
47
- }