insightly2 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/README.md +113 -0
  7. data/Rakefile +6 -0
  8. data/config/gem_secret.yml.example +1 -0
  9. data/insightly2.gemspec +29 -0
  10. data/lib/insightly2/client.rb +54 -0
  11. data/lib/insightly2/dsl/comments.rb +47 -0
  12. data/lib/insightly2/dsl/contacts.rb +130 -0
  13. data/lib/insightly2/dsl/countries.rb +12 -0
  14. data/lib/insightly2/dsl/currencies.rb +12 -0
  15. data/lib/insightly2/dsl/custom_fields.rb +22 -0
  16. data/lib/insightly2/dsl/emails.rb +57 -0
  17. data/lib/insightly2/dsl/events.rb +52 -0
  18. data/lib/insightly2/dsl/file_attachments.rb +14 -0
  19. data/lib/insightly2/dsl/file_categories.rb +52 -0
  20. data/lib/insightly2/dsl/notes.rb +85 -0
  21. data/lib/insightly2/dsl/opportunities.rb +134 -0
  22. data/lib/insightly2/dsl/opportunity_categories.rb +52 -0
  23. data/lib/insightly2/dsl/opportunity_state_reasons.rb +12 -0
  24. data/lib/insightly2/dsl/organisations.rb +128 -0
  25. data/lib/insightly2/dsl/pipeline_stages.rb +22 -0
  26. data/lib/insightly2/dsl/pipelines.rb +22 -0
  27. data/lib/insightly2/dsl/project_categories.rb +52 -0
  28. data/lib/insightly2/dsl/projects.rb +129 -0
  29. data/lib/insightly2/dsl/relationships.rb +12 -0
  30. data/lib/insightly2/dsl/tags.rb +15 -0
  31. data/lib/insightly2/dsl/task_categories.rb +52 -0
  32. data/lib/insightly2/dsl/tasks.rb +76 -0
  33. data/lib/insightly2/dsl/team_members.rb +53 -0
  34. data/lib/insightly2/dsl/teams.rb +53 -0
  35. data/lib/insightly2/dsl/users.rb +22 -0
  36. data/lib/insightly2/dsl.rb +65 -0
  37. data/lib/insightly2/errors/client_error.rb +10 -0
  38. data/lib/insightly2/errors/resource_not_found_error.rb +8 -0
  39. data/lib/insightly2/errors.rb +10 -0
  40. data/lib/insightly2/resources/comment.rb +10 -0
  41. data/lib/insightly2/resources/contact.rb +8 -0
  42. data/lib/insightly2/resources/country.rb +8 -0
  43. data/lib/insightly2/resources/currency.rb +8 -0
  44. data/lib/insightly2/resources/custom_field.rb +8 -0
  45. data/lib/insightly2/resources/email.rb +8 -0
  46. data/lib/insightly2/resources/event.rb +8 -0
  47. data/lib/insightly2/resources/file_attachment.rb +8 -0
  48. data/lib/insightly2/resources/file_category.rb +8 -0
  49. data/lib/insightly2/resources/note.rb +8 -0
  50. data/lib/insightly2/resources/object/attributes.rb +71 -0
  51. data/lib/insightly2/resources/object/serializers.rb +102 -0
  52. data/lib/insightly2/resources/object.rb +29 -0
  53. data/lib/insightly2/resources/opportunity.rb +8 -0
  54. data/lib/insightly2/resources/opportunity_category.rb +8 -0
  55. data/lib/insightly2/resources/opportunity_state_reason.rb +8 -0
  56. data/lib/insightly2/resources/organisation.rb +8 -0
  57. data/lib/insightly2/resources/pipeline.rb +8 -0
  58. data/lib/insightly2/resources/pipeline_stage.rb +8 -0
  59. data/lib/insightly2/resources/project.rb +8 -0
  60. data/lib/insightly2/resources/project_category.rb +8 -0
  61. data/lib/insightly2/resources/relationship.rb +8 -0
  62. data/lib/insightly2/resources/tag.rb +8 -0
  63. data/lib/insightly2/resources/task.rb +8 -0
  64. data/lib/insightly2/resources/task_category.rb +8 -0
  65. data/lib/insightly2/resources/team.rb +8 -0
  66. data/lib/insightly2/resources/team_member.rb +8 -0
  67. data/lib/insightly2/resources/user.rb +8 -0
  68. data/lib/insightly2/resources.rb +33 -0
  69. data/lib/insightly2/utils/url_helper.rb +17 -0
  70. data/lib/insightly2/utils.rb +8 -0
  71. data/lib/insightly2/version.rb +3 -0
  72. data/lib/insightly2.rb +22 -0
  73. data/spec/fixtures/vcr_cassettes/create_comment_attachment.yml +42 -0
  74. data/spec/fixtures/vcr_cassettes/create_contact.yml +47 -0
  75. data/spec/fixtures/vcr_cassettes/create_contact_image.yml +42 -0
  76. data/spec/fixtures/vcr_cassettes/create_email_comment.yml +47 -0
  77. data/spec/fixtures/vcr_cassettes/create_event.yml +95 -0
  78. data/spec/fixtures/vcr_cassettes/create_file_category.yml +89 -0
  79. data/spec/fixtures/vcr_cassettes/create_note.yml +95 -0
  80. data/spec/fixtures/vcr_cassettes/create_note_comment.yml +47 -0
  81. data/spec/fixtures/vcr_cassettes/create_note_file.yml +42 -0
  82. data/spec/fixtures/vcr_cassettes/create_opportunity.yml +98 -0
  83. data/spec/fixtures/vcr_cassettes/create_opportunity_category.yml +89 -0
  84. data/spec/fixtures/vcr_cassettes/create_opportunity_image.yml +42 -0
  85. data/spec/fixtures/vcr_cassettes/create_organisation.yml +116 -0
  86. data/spec/fixtures/vcr_cassettes/create_organisation_image.yml +42 -0
  87. data/spec/fixtures/vcr_cassettes/create_project.yml +106 -0
  88. data/spec/fixtures/vcr_cassettes/create_project_category.yml +89 -0
  89. data/spec/fixtures/vcr_cassettes/create_project_image.yml +42 -0
  90. data/spec/fixtures/vcr_cassettes/create_task.yml +98 -0
  91. data/spec/fixtures/vcr_cassettes/create_task_category.yml +89 -0
  92. data/spec/fixtures/vcr_cassettes/create_task_comment.yml +47 -0
  93. data/spec/fixtures/vcr_cassettes/create_team.yml +92 -0
  94. data/spec/fixtures/vcr_cassettes/create_team_member.yml +89 -0
  95. data/spec/fixtures/vcr_cassettes/delete_comment.yml +42 -0
  96. data/spec/fixtures/vcr_cassettes/delete_contact.yml +42 -0
  97. data/spec/fixtures/vcr_cassettes/delete_contact_image.yml +42 -0
  98. data/spec/fixtures/vcr_cassettes/delete_email.yml +42 -0
  99. data/spec/fixtures/vcr_cassettes/delete_event.yml +42 -0
  100. data/spec/fixtures/vcr_cassettes/delete_file_category.yml +42 -0
  101. data/spec/fixtures/vcr_cassettes/delete_note.yml +42 -0
  102. data/spec/fixtures/vcr_cassettes/delete_opportunity.yml +42 -0
  103. data/spec/fixtures/vcr_cassettes/delete_opportunity_category.yml +42 -0
  104. data/spec/fixtures/vcr_cassettes/delete_opportunity_image.yml +42 -0
  105. data/spec/fixtures/vcr_cassettes/delete_organisation.yml +42 -0
  106. data/spec/fixtures/vcr_cassettes/delete_organisation_image.yml +42 -0
  107. data/spec/fixtures/vcr_cassettes/delete_project.yml +42 -0
  108. data/spec/fixtures/vcr_cassettes/delete_project_category.yml +42 -0
  109. data/spec/fixtures/vcr_cassettes/delete_project_image.yml +42 -0
  110. data/spec/fixtures/vcr_cassettes/delete_task.yml +42 -0
  111. data/spec/fixtures/vcr_cassettes/delete_task_category.yml +42 -0
  112. data/spec/fixtures/vcr_cassettes/delete_team.yml +42 -0
  113. data/spec/fixtures/vcr_cassettes/delete_team_member.yml +42 -0
  114. data/spec/fixtures/vcr_cassettes/get_comment.yml +47 -0
  115. data/spec/fixtures/vcr_cassettes/get_contact.yml +47 -0
  116. data/spec/fixtures/vcr_cassettes/get_contact_emails.yml +47 -0
  117. data/spec/fixtures/vcr_cassettes/get_contact_image.yml +44 -0
  118. data/spec/fixtures/vcr_cassettes/get_contact_notes.yml +48 -0
  119. data/spec/fixtures/vcr_cassettes/get_contact_tasks.yml +48 -0
  120. data/spec/fixtures/vcr_cassettes/get_contacts.yml +184 -0
  121. data/spec/fixtures/vcr_cassettes/get_countries.yml +85 -0
  122. data/spec/fixtures/vcr_cassettes/get_currencies.yml +124 -0
  123. data/spec/fixtures/vcr_cassettes/get_custom_field.yml +46 -0
  124. data/spec/fixtures/vcr_cassettes/get_custom_fields.yml +46 -0
  125. data/spec/fixtures/vcr_cassettes/get_email.yml +48 -0
  126. data/spec/fixtures/vcr_cassettes/get_email_comments.yml +49 -0
  127. data/spec/fixtures/vcr_cassettes/get_emails.yml +47 -0
  128. data/spec/fixtures/vcr_cassettes/get_event.yml +48 -0
  129. data/spec/fixtures/vcr_cassettes/get_events.yml +48 -0
  130. data/spec/fixtures/vcr_cassettes/get_file_attachment.yml +4057 -0
  131. data/spec/fixtures/vcr_cassettes/get_file_categories.yml +46 -0
  132. data/spec/fixtures/vcr_cassettes/get_file_category.yml +46 -0
  133. data/spec/fixtures/vcr_cassettes/get_note.yml +48 -0
  134. data/spec/fixtures/vcr_cassettes/get_note_comments.yml +48 -0
  135. data/spec/fixtures/vcr_cassettes/get_notes.yml +52 -0
  136. data/spec/fixtures/vcr_cassettes/get_opportunities.yml +81 -0
  137. data/spec/fixtures/vcr_cassettes/get_opportunity.yml +49 -0
  138. data/spec/fixtures/vcr_cassettes/get_opportunity_categories.yml +46 -0
  139. data/spec/fixtures/vcr_cassettes/get_opportunity_category.yml +46 -0
  140. data/spec/fixtures/vcr_cassettes/get_opportunity_emails.yml +48 -0
  141. data/spec/fixtures/vcr_cassettes/get_opportunity_image.yml +44 -0
  142. data/spec/fixtures/vcr_cassettes/get_opportunity_notes.yml +48 -0
  143. data/spec/fixtures/vcr_cassettes/get_opportunity_state_history.yml +83 -0
  144. data/spec/fixtures/vcr_cassettes/get_opportunity_state_reasons.yml +47 -0
  145. data/spec/fixtures/vcr_cassettes/get_opportunity_tasks.yml +49 -0
  146. data/spec/fixtures/vcr_cassettes/get_organisation.yml +55 -0
  147. data/spec/fixtures/vcr_cassettes/get_organisation_emails.yml +48 -0
  148. data/spec/fixtures/vcr_cassettes/get_organisation_image.yml +42 -0
  149. data/spec/fixtures/vcr_cassettes/get_organisation_notes.yml +47 -0
  150. data/spec/fixtures/vcr_cassettes/get_organisation_tasks.yml +48 -0
  151. data/spec/fixtures/vcr_cassettes/get_organisations.yml +2092 -0
  152. data/spec/fixtures/vcr_cassettes/get_pipeline.yml +46 -0
  153. data/spec/fixtures/vcr_cassettes/get_pipeline_stage.yml +46 -0
  154. data/spec/fixtures/vcr_cassettes/get_pipeline_stages.yml +49 -0
  155. data/spec/fixtures/vcr_cassettes/get_pipelines.yml +46 -0
  156. data/spec/fixtures/vcr_cassettes/get_project.yml +52 -0
  157. data/spec/fixtures/vcr_cassettes/get_project_categories.yml +46 -0
  158. data/spec/fixtures/vcr_cassettes/get_project_category.yml +46 -0
  159. data/spec/fixtures/vcr_cassettes/get_project_emails.yml +48 -0
  160. data/spec/fixtures/vcr_cassettes/get_project_image.yml +44 -0
  161. data/spec/fixtures/vcr_cassettes/get_project_notes.yml +47 -0
  162. data/spec/fixtures/vcr_cassettes/get_project_tasks.yml +48 -0
  163. data/spec/fixtures/vcr_cassettes/get_projects.yml +52 -0
  164. data/spec/fixtures/vcr_cassettes/get_task.yml +49 -0
  165. data/spec/fixtures/vcr_cassettes/get_task_categories.yml +47 -0
  166. data/spec/fixtures/vcr_cassettes/get_task_category.yml +46 -0
  167. data/spec/fixtures/vcr_cassettes/get_task_comments.yml +47 -0
  168. data/spec/fixtures/vcr_cassettes/get_tasks.yml +148 -0
  169. data/spec/fixtures/vcr_cassettes/get_team.yml +47 -0
  170. data/spec/fixtures/vcr_cassettes/get_team_member.yml +46 -0
  171. data/spec/fixtures/vcr_cassettes/get_team_members.yml +46 -0
  172. data/spec/fixtures/vcr_cassettes/get_teams.yml +47 -0
  173. data/spec/fixtures/vcr_cassettes/get_user.yml +48 -0
  174. data/spec/fixtures/vcr_cassettes/get_users.yml +48 -0
  175. data/spec/fixtures/vcr_cassettes/update_comment.yml +97 -0
  176. data/spec/fixtures/vcr_cassettes/update_contact.yml +94 -0
  177. data/spec/fixtures/vcr_cassettes/update_contact_image.yml +42 -0
  178. data/spec/fixtures/vcr_cassettes/update_event.yml +97 -0
  179. data/spec/fixtures/vcr_cassettes/update_file_category.yml +91 -0
  180. data/spec/fixtures/vcr_cassettes/update_note.yml +100 -0
  181. data/spec/fixtures/vcr_cassettes/update_opportunity.yml +100 -0
  182. data/spec/fixtures/vcr_cassettes/update_opportunity_category.yml +91 -0
  183. data/spec/fixtures/vcr_cassettes/update_opportunity_image.yml +42 -0
  184. data/spec/fixtures/vcr_cassettes/update_organisation.yml +118 -0
  185. data/spec/fixtures/vcr_cassettes/update_organisation_image.yml +42 -0
  186. data/spec/fixtures/vcr_cassettes/update_project.yml +109 -0
  187. data/spec/fixtures/vcr_cassettes/update_project_category.yml +91 -0
  188. data/spec/fixtures/vcr_cassettes/update_project_image.yml +42 -0
  189. data/spec/fixtures/vcr_cassettes/update_task.yml +100 -0
  190. data/spec/fixtures/vcr_cassettes/update_task_category.yml +91 -0
  191. data/spec/fixtures/vcr_cassettes/update_team.yml +94 -0
  192. data/spec/fixtures/vcr_cassettes/update_team_member.yml +91 -0
  193. data/spec/fixtures/vcr_cassettes/z_insightly_client_status_check.yml +48 -0
  194. data/spec/insightly2/client_spec.rb +12 -0
  195. data/spec/insightly2/dsl/comments_spec.rb +45 -0
  196. data/spec/insightly2/dsl/contacts_spec.rb +130 -0
  197. data/spec/insightly2/dsl/countries_spec.rb +14 -0
  198. data/spec/insightly2/dsl/currencies_spec.rb +14 -0
  199. data/spec/insightly2/dsl/custom_fields_spec.rb +25 -0
  200. data/spec/insightly2/dsl/emails_spec.rb +56 -0
  201. data/spec/insightly2/dsl/events_spec.rb +55 -0
  202. data/spec/insightly2/dsl/file_attachments_spec.rb +15 -0
  203. data/spec/insightly2/dsl/file_categories_spec.rb +55 -0
  204. data/spec/insightly2/dsl/notes_spec.rb +86 -0
  205. data/spec/insightly2/dsl/opportunities_spec.rb +143 -0
  206. data/spec/insightly2/dsl/opportunity_categories_spec.rb +55 -0
  207. data/spec/insightly2/dsl/opportunity_state_reasons_spec.rb +14 -0
  208. data/spec/insightly2/dsl/organisations_spec.rb +131 -0
  209. data/spec/insightly2/dsl/pipeline_stages_spec.rb +25 -0
  210. data/spec/insightly2/dsl/pipelines_spec.rb +25 -0
  211. data/spec/insightly2/dsl/project_categories_spec.rb +55 -0
  212. data/spec/insightly2/dsl/projects_spec.rb +131 -0
  213. data/spec/insightly2/dsl/task_categories_spec.rb +55 -0
  214. data/spec/insightly2/dsl/tasks_spec.rb +75 -0
  215. data/spec/insightly2/dsl/team_members_spec.rb +56 -0
  216. data/spec/insightly2/dsl/teams_spec.rb +55 -0
  217. data/spec/insightly2/dsl/users_spec.rb +25 -0
  218. data/spec/insightly2/resources/comment_spec.rb +27 -0
  219. data/spec/insightly2/resources/contact_spec.rb +28 -0
  220. data/spec/insightly2/resources/custom_field_spec.rb +22 -0
  221. data/spec/insightly2/resources/email_spec.rb +29 -0
  222. data/spec/insightly2/resources/event_spec.rb +29 -0
  223. data/spec/insightly2/resources/file_attachment_spec.rb +31 -0
  224. data/spec/insightly2/resources/file_category_spec.rb +21 -0
  225. data/spec/insightly2/resources/note_spec.rb +29 -0
  226. data/spec/insightly2/resources/opportunity_category_spec.rb +21 -0
  227. data/spec/insightly2/resources/opportunity_spec.rb +30 -0
  228. data/spec/insightly2/resources/organisation_spec.rb +29 -0
  229. data/spec/insightly2/resources/pipeline_spec.rb +21 -0
  230. data/spec/insightly2/resources/pipeline_stage_spec.rb +21 -0
  231. data/spec/insightly2/resources/project_category_spec.rb +21 -0
  232. data/spec/insightly2/resources/project_spec.rb +30 -0
  233. data/spec/insightly2/resources/task_category_spec.rb +21 -0
  234. data/spec/insightly2/resources/task_spec.rb +32 -0
  235. data/spec/insightly2/resources/team_member_spec.rb +21 -0
  236. data/spec/insightly2/resources/team_spec.rb +27 -0
  237. data/spec/insightly2/resources/user_spec.rb +29 -0
  238. data/spec/insightly2_spec.rb +15 -0
  239. data/spec/spec_helper.rb +20 -0
  240. metadata +551 -0
@@ -0,0 +1,118 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Organisations/39831139
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Expires:
30
+ - "-1"
31
+ Vary:
32
+ - Accept-Encoding
33
+ Server:
34
+ - Microsoft-IIS/7.5
35
+ Date:
36
+ - Sun, 05 Oct 2014 07:01:34 GMT
37
+ Content-Length:
38
+ - '885'
39
+ Set-Cookie:
40
+ - snaptid=sac1prdc01ut05; path=/
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"ORGANISATION_ID":39831139,"ORGANISATION_NAME":"WeCellStuff.com","BACKGROUND":"We
44
+ are in the business of developing cell therapies for eventual clinical use,
45
+ not pushing research products or services with ridiculous profit margins.
46
+ Our product and service offerings have been developed as a side effect of
47
+ our ongoing research, and everything we sell is used on a regular basis by
48
+ our own staff scientists. We make these products and services available at
49
+ the lowest cost possible to facilitate scientific discovery, and 100% of our
50
+ proceeds are used to help finance our own research programs. We thank you
51
+ for your support, and trust you will enjoy doing business with our team.","IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/339351/","OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-01
52
+ 17:14:53","DATE_UPDATED_UTC":"2014-10-05 07:01:33","VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"ADDRESSES":[],"CONTACTINFOS":[],"DATES":[],"TAGS":[],"LINKS":[],"ORGANISATIONLINKS":[],"EMAILLINKS":[{"EMAIL_LINK_ID":61058077,"EMAIL_ID":17684953,"CONTACT_ID":null,"ORGANISATION_ID":39831139,"OPPORTUNITY_ID":null,"PROJECT_ID":null}]}'
53
+ http_version:
54
+ recorded_at: Sun, 05 Oct 2014 07:01:27 GMT
55
+ - request:
56
+ method: put
57
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Organisations
58
+ body:
59
+ encoding: UTF-8
60
+ string: '{"ORGANISATION_ID":39831139,"ORGANISATION_NAME":"WeCellStuff.com","BACKGROUND":"We
61
+ are in the business of developing cell therapies for eventual clinical use,
62
+ not pushing research products or services with ridiculous profit margins.
63
+ Our product and service offerings have been developed as a side effect of
64
+ our ongoing research, and everything we sell is used on a regular basis by
65
+ our own staff scientists. We make these products and services available at
66
+ the lowest cost possible to facilitate scientific discovery, and 100% of our
67
+ proceeds are used to help finance our own research programs. We thank you
68
+ for your support, and trust you will enjoy doing business with our team.","IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/339351/","OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-01
69
+ 17:14:53","DATE_UPDATED_UTC":"2014-10-05 07:01:33","VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"ADDRESSES":[],"CONTACTINFOS":[],"DATES":[],"TAGS":[],"LINKS":[],"ORGANISATIONLINKS":[],"EMAILLINKS":[{"EMAIL_LINK_ID":61058077,"EMAIL_ID":17684953,"CONTACT_ID":null,"ORGANISATION_ID":39831139,"OPPORTUNITY_ID":null,"PROJECT_ID":null}]}'
70
+ headers:
71
+ User-Agent:
72
+ - Faraday v0.9.0
73
+ Accept:
74
+ - application/json
75
+ Content-Type:
76
+ - application/json
77
+ Accept-Encoding:
78
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
+ response:
80
+ status:
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ Cache-Control:
85
+ - no-cache
86
+ Pragma:
87
+ - no-cache
88
+ Content-Type:
89
+ - application/json; charset=utf-8
90
+ Expires:
91
+ - "-1"
92
+ Location:
93
+ - https://api.insight.ly/v2.1/Organisations/39831139
94
+ Vary:
95
+ - Accept-Encoding
96
+ Server:
97
+ - Microsoft-IIS/7.5
98
+ Date:
99
+ - Sun, 05 Oct 2014 07:01:35 GMT
100
+ Content-Length:
101
+ - '778'
102
+ Set-Cookie:
103
+ - snaptid=sac1prdc01ut05; path=/
104
+ body:
105
+ encoding: UTF-8
106
+ string: '{"ORGANISATION_ID":39831139,"ORGANISATION_NAME":"WeCellStuff.com","BACKGROUND":"We
107
+ are in the business of developing cell therapies for eventual clinical use,
108
+ not pushing research products or services with ridiculous profit margins.
109
+ Our product and service offerings have been developed as a side effect of
110
+ our ongoing research, and everything we sell is used on a regular basis by
111
+ our own staff scientists. We make these products and services available at
112
+ the lowest cost possible to facilitate scientific discovery, and 100% of our
113
+ proceeds are used to help finance our own research programs. We thank you
114
+ for your support, and trust you will enjoy doing business with our team.","IMAGE_URL":null,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-01
115
+ 17:14:53","DATE_UPDATED_UTC":"2014-10-05 07:01:35","VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"ADDRESSES":[],"CONTACTINFOS":[],"DATES":[],"TAGS":[],"LINKS":[],"ORGANISATIONLINKS":[],"EMAILLINKS":null}'
116
+ http_version:
117
+ recorded_at: Sun, 05 Oct 2014 07:01:27 GMT
118
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Organisations/39831139/Image/1.jpg
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 417
21
+ message: Expectation Failed
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Expires:
28
+ - "-1"
29
+ Server:
30
+ - Microsoft-IIS/7.5
31
+ Date:
32
+ - Sun, 05 Oct 2014 07:01:35 GMT
33
+ Content-Length:
34
+ - '0'
35
+ Set-Cookie:
36
+ - snaptid=sac1prdc01ut03; path=/
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Sun, 05 Oct 2014 07:01:28 GMT
42
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Projects/1657941
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Expires:
30
+ - "-1"
31
+ Vary:
32
+ - Accept-Encoding
33
+ Server:
34
+ - Microsoft-IIS/7.5
35
+ Date:
36
+ - Sun, 05 Oct 2014 17:07:35 GMT
37
+ Content-Length:
38
+ - '813'
39
+ Set-Cookie:
40
+ - snaptid=sac1prdc01ut04; path=/
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"PROJECT_ID":1657941,"PROJECT_NAME":"The leaves are lovely this time
44
+ of year","STATUS":"IN PROGRESS","PROJECT_DETAILS":"---Begin Synced Data---\n<b>Project
45
+ Url:</b> https://www.scienceexchange.com/projects/30034\n<b>Estimate Deadline:</b>
46
+ May 6, 2014\n---End Synced Data---","OPPORTUNITY_ID":4070113,"STARTED_DATE":"2014-10-05
47
+ 00:00:00","COMPLETED_DATE":null,"IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/339351/","RESPONSIBLE_USER_ID":null,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-05
48
+ 16:53:35","DATE_UPDATED_UTC":"2014-10-05 16:53:35","CATEGORY_ID":null,"PIPELINE_ID":null,"STAGE_ID":null,"VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"TAGS":[],"LINKS":[{"LINK_ID":51931087,"CONTACT_ID":null,"OPPORTUNITY_ID":null,"ORGANISATION_ID":35343476,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931088,"CONTACT_ID":70653013,"OPPORTUNITY_ID":null,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931089,"CONTACT_ID":null,"OPPORTUNITY_ID":4070113,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":"Converted
49
+ Opportunity","DETAILS":null}],"EMAILLINKS":[{"EMAIL_LINK_ID":61065705,"EMAIL_ID":17684953,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":null,"PROJECT_ID":1657941}]}'
50
+ http_version:
51
+ recorded_at: Sun, 05 Oct 2014 17:07:28 GMT
52
+ - request:
53
+ method: put
54
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Projects
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"PROJECT_ID":1657941,"PROJECT_NAME":"The leaves are lovely this time
58
+ of year","STATUS":"IN PROGRESS","PROJECT_DETAILS":"---Begin Synced Data---\n<b>Project
59
+ Url:</b> https://www.scienceexchange.com/projects/30034\n<b>Estimate Deadline:</b>
60
+ May 6, 2014\n---End Synced Data---","OPPORTUNITY_ID":4070113,"STARTED_DATE":"2014-10-05
61
+ 00:00:00","COMPLETED_DATE":null,"IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/339351/","RESPONSIBLE_USER_ID":null,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-05
62
+ 16:53:35","DATE_UPDATED_UTC":"2014-10-05 16:53:35","CATEGORY_ID":null,"PIPELINE_ID":null,"STAGE_ID":null,"VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"TAGS":[],"LINKS":[{"LINK_ID":51931087,"CONTACT_ID":null,"OPPORTUNITY_ID":null,"ORGANISATION_ID":35343476,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931088,"CONTACT_ID":70653013,"OPPORTUNITY_ID":null,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931089,"CONTACT_ID":null,"OPPORTUNITY_ID":4070113,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":"Converted
63
+ Opportunity","DETAILS":null}],"EMAILLINKS":[{"EMAIL_LINK_ID":61065705,"EMAIL_ID":17684953,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":null,"PROJECT_ID":1657941}]}'
64
+ headers:
65
+ User-Agent:
66
+ - Faraday v0.9.0
67
+ Accept:
68
+ - application/json
69
+ Content-Type:
70
+ - application/json
71
+ Accept-Encoding:
72
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Cache-Control:
79
+ - no-cache
80
+ Pragma:
81
+ - no-cache
82
+ Content-Type:
83
+ - application/json; charset=utf-8
84
+ Expires:
85
+ - "-1"
86
+ Location:
87
+ - https://api.insight.ly/v2.1/Projects/1657941
88
+ Vary:
89
+ - Accept-Encoding
90
+ Server:
91
+ - Microsoft-IIS/7.5
92
+ Date:
93
+ - Sun, 05 Oct 2014 17:07:36 GMT
94
+ Content-Length:
95
+ - '822'
96
+ Set-Cookie:
97
+ - snaptid=sac1prdc01ut05; path=/
98
+ body:
99
+ encoding: UTF-8
100
+ string: '{"PROJECT_ID":1657941,"PROJECT_NAME":"The leaves are lovely this time
101
+ of year","STATUS":"IN PROGRESS","PROJECT_DETAILS":"---Begin Synced Data---\n<b>Project
102
+ Url:</b> https://www.scienceexchange.com/projects/30034\n<b>Estimate Deadline:</b>
103
+ May 6, 2014\n---End Synced Data---","OPPORTUNITY_ID":4070113,"STARTED_DATE":"2014-10-05
104
+ 00:00:00","COMPLETED_DATE":null,"IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/339351/","RESPONSIBLE_USER_ID":null,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-05
105
+ 16:53:35","DATE_UPDATED_UTC":"2014-10-05 17:07:36","CATEGORY_ID":null,"PIPELINE_ID":null,"STAGE_ID":null,"VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"TAGS":[],"LINKS":[{"LINK_ID":51931087,"CONTACT_ID":null,"OPPORTUNITY_ID":null,"ORGANISATION_ID":35343476,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931088,"CONTACT_ID":70653013,"OPPORTUNITY_ID":null,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":null,"DETAILS":null},{"LINK_ID":51931089,"CONTACT_ID":null,"OPPORTUNITY_ID":4070113,"ORGANISATION_ID":null,"PROJECT_ID":1657941,"SECOND_PROJECT_ID":null,"SECOND_OPPORTUNITY_ID":null,"ROLE":"Converted
106
+ Opportunity","DETAILS":null}],"EMAILLINKS":[{"EMAIL_LINK_ID":61065705,"EMAIL_ID":17684953,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":null,"PROJECT_ID":1657941}]}'
107
+ http_version:
108
+ recorded_at: Sun, 05 Oct 2014 17:07:28 GMT
109
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/ProjectCategories/1947441
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Expires:
30
+ - "-1"
31
+ Vary:
32
+ - Accept-Encoding
33
+ Server:
34
+ - Microsoft-IIS/7.5
35
+ Date:
36
+ - Sun, 05 Oct 2014 16:49:02 GMT
37
+ Content-Length:
38
+ - '206'
39
+ Set-Cookie:
40
+ - snaptid=sac1prdc01ut04; path=/
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"CATEGORY_ID":1947441,"CATEGORY_NAME":"Email","ACTIVE":true,"BACKGROUND_COLOR":"9a482f"}'
44
+ http_version:
45
+ recorded_at: Sun, 05 Oct 2014 16:48:54 GMT
46
+ - request:
47
+ method: put
48
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/ProjectCategories
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"CATEGORY_ID":1947441,"CATEGORY_NAME":"Email","ACTIVE":true,"BACKGROUND_COLOR":"9a482f"}'
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Accept:
56
+ - application/json
57
+ Content-Type:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Cache-Control:
67
+ - no-cache
68
+ Pragma:
69
+ - no-cache
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ Expires:
73
+ - "-1"
74
+ Location:
75
+ - https://api.insight.ly/v2.1/ProjectCategories/1947441
76
+ Vary:
77
+ - Accept-Encoding
78
+ Server:
79
+ - Microsoft-IIS/7.5
80
+ Date:
81
+ - Sun, 05 Oct 2014 16:49:03 GMT
82
+ Content-Length:
83
+ - '206'
84
+ Set-Cookie:
85
+ - snaptid=sac1prdc01ut05; path=/
86
+ body:
87
+ encoding: UTF-8
88
+ string: '{"CATEGORY_ID":1947441,"CATEGORY_NAME":"Email","ACTIVE":true,"BACKGROUND_COLOR":"9a482f"}'
89
+ http_version:
90
+ recorded_at: Sun, 05 Oct 2014 16:48:55 GMT
91
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Projects/1657941/Image/1.jpg
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 417
21
+ message: Expectation Failed
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Expires:
28
+ - "-1"
29
+ Server:
30
+ - Microsoft-IIS/7.5
31
+ Date:
32
+ - Sun, 05 Oct 2014 17:09:55 GMT
33
+ Content-Length:
34
+ - '0'
35
+ Set-Cookie:
36
+ - snaptid=sac1prdc01ut05; path=/
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Sun, 05 Oct 2014 17:09:48 GMT
42
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,100 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Tasks/14694323
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Expires:
30
+ - "-1"
31
+ Vary:
32
+ - Accept-Encoding
33
+ Server:
34
+ - Microsoft-IIS/7.5
35
+ Date:
36
+ - Sun, 05 Oct 2014 17:28:19 GMT
37
+ Content-Length:
38
+ - '540'
39
+ Set-Cookie:
40
+ - snaptid=sac1prdc01ut05; path=/
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"TASK_ID":14694323,"Title":"Project Posted - Call or email requester","CATEGORY_ID":1947439,"DUE_DATE":"2013-11-18
44
+ 00:00:00","COMPLETED_DATE_UTC":null,"PUBLICLY_VISIBLE":true,"COMPLETED":false,"PROJECT_ID":null,"DETAILS":"Project
45
+ Posted - Call or email requester","STATUS":"NOT STARTED","PRIORITY":null,"PERCENT_COMPLETE":0,"START_DATE":null,"ASSIGNED_BY_USER_ID":null,"PARENT_TASK_ID":null,"OWNER_VISIBLE":false,"RESPONSIBLE_USER_ID":607181,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-07-31
46
+ 16:43:47","DATE_UPDATED_UTC":"2014-07-31 16:43:47","TASKLINKS":[{"TASK_LINK_ID":13912965,"TASK_ID":14694323,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":4070111,"PROJECT_ID":null}]}'
47
+ http_version:
48
+ recorded_at: Sun, 05 Oct 2014 17:28:11 GMT
49
+ - request:
50
+ method: put
51
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/Tasks
52
+ body:
53
+ encoding: UTF-8
54
+ string: '{"TASK_ID":14694323,"Title":"Project Posted - Call or email requester","CATEGORY_ID":1947439,"DUE_DATE":"2013-11-18
55
+ 00:00:00","COMPLETED_DATE_UTC":null,"PUBLICLY_VISIBLE":true,"COMPLETED":false,"PROJECT_ID":null,"DETAILS":"Project
56
+ Posted - Call or email requester","STATUS":"NOT STARTED","PRIORITY":null,"PERCENT_COMPLETE":0,"START_DATE":null,"ASSIGNED_BY_USER_ID":null,"PARENT_TASK_ID":null,"OWNER_VISIBLE":false,"RESPONSIBLE_USER_ID":607181,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-07-31
57
+ 16:43:47","DATE_UPDATED_UTC":"2014-07-31 16:43:47","TASKLINKS":[{"TASK_LINK_ID":13912965,"TASK_ID":14694323,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":4070111,"PROJECT_ID":null}]}'
58
+ headers:
59
+ User-Agent:
60
+ - Faraday v0.9.0
61
+ Accept:
62
+ - application/json
63
+ Content-Type:
64
+ - application/json
65
+ Accept-Encoding:
66
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Cache-Control:
73
+ - no-cache
74
+ Pragma:
75
+ - no-cache
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Expires:
79
+ - "-1"
80
+ Location:
81
+ - https://api.insight.ly/v2.1/Tasks/14694323
82
+ Vary:
83
+ - Accept-Encoding
84
+ Server:
85
+ - Microsoft-IIS/7.5
86
+ Date:
87
+ - Sun, 05 Oct 2014 17:28:19 GMT
88
+ Content-Length:
89
+ - '538'
90
+ Set-Cookie:
91
+ - snaptid=sac1prdc01ut04; path=/
92
+ body:
93
+ encoding: UTF-8
94
+ string: '{"TASK_ID":14694323,"Title":"Project Posted - Call or email requester","CATEGORY_ID":1947439,"DUE_DATE":"2013-11-18
95
+ 00:00:00","COMPLETED_DATE_UTC":null,"PUBLICLY_VISIBLE":true,"COMPLETED":false,"PROJECT_ID":null,"DETAILS":"Project
96
+ Posted - Call or email requester","STATUS":"NOT STARTED","PRIORITY":null,"PERCENT_COMPLETE":0,"START_DATE":null,"ASSIGNED_BY_USER_ID":null,"PARENT_TASK_ID":null,"OWNER_VISIBLE":false,"RESPONSIBLE_USER_ID":607181,"OWNER_USER_ID":607181,"DATE_CREATED_UTC":"2014-10-05
97
+ 17:28:19","DATE_UPDATED_UTC":"2014-10-05 17:28:19","TASKLINKS":[{"TASK_LINK_ID":13912965,"TASK_ID":14694323,"CONTACT_ID":null,"ORGANISATION_ID":null,"OPPORTUNITY_ID":4070111,"PROJECT_ID":null}]}'
98
+ http_version:
99
+ recorded_at: Sun, 05 Oct 2014 17:28:12 GMT
100
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/TaskCategories/1947437
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Expires:
30
+ - "-1"
31
+ Vary:
32
+ - Accept-Encoding
33
+ Server:
34
+ - Microsoft-IIS/7.5
35
+ Date:
36
+ - Sun, 05 Oct 2014 17:18:01 GMT
37
+ Content-Length:
38
+ - '209'
39
+ Set-Cookie:
40
+ - snaptid=sac1prdc01ut06; path=/
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"CATEGORY_ID":1947437,"CATEGORY_NAME":"Meeting","ACTIVE":true,"BACKGROUND_COLOR":"9f4681"}'
44
+ http_version:
45
+ recorded_at: Sun, 05 Oct 2014 17:17:53 GMT
46
+ - request:
47
+ method: put
48
+ uri: https://<INSIGHTLY_API_KEY>:@api.insight.ly/v2.1/TaskCategories
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"CATEGORY_ID":1947437,"CATEGORY_NAME":"Meeting","ACTIVE":true,"BACKGROUND_COLOR":"9f4681"}'
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Accept:
56
+ - application/json
57
+ Content-Type:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Cache-Control:
67
+ - no-cache
68
+ Pragma:
69
+ - no-cache
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ Expires:
73
+ - "-1"
74
+ Location:
75
+ - https://api.insight.ly/v2.1/TaskCategories/1947437
76
+ Vary:
77
+ - Accept-Encoding
78
+ Server:
79
+ - Microsoft-IIS/7.5
80
+ Date:
81
+ - Sun, 05 Oct 2014 17:18:01 GMT
82
+ Content-Length:
83
+ - '209'
84
+ Set-Cookie:
85
+ - snaptid=sac1prdc01ut05; path=/
86
+ body:
87
+ encoding: UTF-8
88
+ string: '{"CATEGORY_ID":1947437,"CATEGORY_NAME":"Meeting","ACTIVE":true,"BACKGROUND_COLOR":"9f4681"}'
89
+ http_version:
90
+ recorded_at: Sun, 05 Oct 2014 17:17:54 GMT
91
+ recorded_with: VCR 2.9.0