hubspot-ruby 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -22
  3. data/Gemfile.lock +14 -11
  4. data/LICENSE.txt +0 -2
  5. data/README.md +8 -6
  6. data/RELEASING.md +4 -5
  7. data/Rakefile +2 -17
  8. data/hubspot-ruby.gemspec +20 -157
  9. data/lib/hubspot-ruby.rb +10 -0
  10. data/lib/hubspot/blog.rb +1 -2
  11. data/lib/hubspot/company.rb +149 -0
  12. data/lib/hubspot/company_properties.rb +59 -0
  13. data/lib/hubspot/config.rb +10 -4
  14. data/lib/hubspot/connection.rb +12 -4
  15. data/lib/hubspot/contact.rb +52 -31
  16. data/lib/hubspot/contact_list.rb +16 -16
  17. data/lib/hubspot/contact_properties.rb +53 -6
  18. data/lib/hubspot/deal.rb +2 -2
  19. data/lib/hubspot/deal_pipeline.rb +43 -0
  20. data/lib/hubspot/deal_properties.rb +59 -0
  21. data/lib/hubspot/engagement.rb +133 -0
  22. data/lib/hubspot/exceptions.rb +1 -1
  23. data/lib/hubspot/form.rb +20 -20
  24. data/lib/hubspot/owner.rb +49 -0
  25. data/lib/hubspot/properties.rb +119 -0
  26. data/lib/hubspot/railtie.rb +10 -0
  27. data/lib/hubspot/topic.rb +2 -2
  28. data/lib/hubspot/utils.rb +106 -3
  29. data/spec/lib/hubspot/blog_spec.rb +2 -0
  30. data/spec/lib/hubspot/company_properties_spec.rb +239 -0
  31. data/spec/lib/hubspot/company_spec.rb +190 -0
  32. data/spec/lib/hubspot/config_spec.rb +1 -1
  33. data/spec/lib/hubspot/connection_spec.rb +33 -27
  34. data/spec/lib/hubspot/contact_list_spec.rb +61 -61
  35. data/spec/lib/hubspot/contact_properties_spec.rb +234 -3
  36. data/spec/lib/hubspot/contact_spec.rb +140 -71
  37. data/spec/lib/hubspot/deal_properties_spec.rb +254 -0
  38. data/spec/lib/hubspot/engagement_spec.rb +87 -0
  39. data/spec/lib/hubspot/form_spec.rb +72 -60
  40. data/spec/lib/hubspot/owner_spec.rb +56 -0
  41. data/spec/lib/hubspot/properties_spec.rb +45 -0
  42. data/spec/lib/hubspot/topic_spec.rb +0 -1
  43. data/spec/lib/hubspot/utils_spec.rb +113 -15
  44. data/spec/lib/tasks/properties_spec.rb +90 -0
  45. data/spec/live/companies_integration_spec.rb +23 -0
  46. data/spec/live/companies_properties_integration_spec.rb +120 -0
  47. data/spec/live/contacts_integration_spec.rb +1 -1
  48. data/spec/live/contacts_properties_integration_spec.rb +120 -0
  49. data/spec/live/deal_properties_integration_spec.rb +123 -0
  50. data/spec/live/deals_integration_spec.rb +1 -1
  51. data/spec/support/cassette_helper.rb +1 -1
  52. data/spec/support/tests_helper.rb +3 -3
  53. metadata +39 -78
  54. data/.document +0 -5
  55. data/lib/hubspot/version.rb +0 -9
  56. data/spec/fixtures/vcr_cassettes/add_contacts_to_lists.yml +0 -281
  57. data/spec/fixtures/vcr_cassettes/blog_list.yml +0 -180
  58. data/spec/fixtures/vcr_cassettes/blog_posts.yml +0 -107
  59. data/spec/fixtures/vcr_cassettes/blog_posts_list.yml +0 -6463
  60. data/spec/fixtures/vcr_cassettes/contact_create.yml +0 -64
  61. data/spec/fixtures/vcr_cassettes/contact_create_existing_email.yml +0 -62
  62. data/spec/fixtures/vcr_cassettes/contact_create_invalid_email.yml +0 -63
  63. data/spec/fixtures/vcr_cassettes/contact_create_with_params.yml +0 -64
  64. data/spec/fixtures/vcr_cassettes/contact_destroy.yml +0 -131
  65. data/spec/fixtures/vcr_cassettes/contact_example.yml +0 -32
  66. data/spec/fixtures/vcr_cassettes/contact_find_by_email.yml +0 -59
  67. data/spec/fixtures/vcr_cassettes/contact_find_by_email_batch_mode.yml +0 -509
  68. data/spec/fixtures/vcr_cassettes/contact_find_by_id.yml +0 -59
  69. data/spec/fixtures/vcr_cassettes/contact_find_by_id_batch_mode.yml +0 -33
  70. data/spec/fixtures/vcr_cassettes/contact_find_by_utk.yml +0 -83
  71. data/spec/fixtures/vcr_cassettes/contact_find_by_utk_batch_mode.yml +0 -33
  72. data/spec/fixtures/vcr_cassettes/contact_list_batch_find.yml +0 -65
  73. data/spec/fixtures/vcr_cassettes/contact_list_destroy.yml +0 -63
  74. data/spec/fixtures/vcr_cassettes/contact_list_example.yml +0 -33
  75. data/spec/fixtures/vcr_cassettes/contact_list_find.yml +0 -96
  76. data/spec/fixtures/vcr_cassettes/contact_list_refresh.yml +0 -33
  77. data/spec/fixtures/vcr_cassettes/contact_list_update.yml +0 -36
  78. data/spec/fixtures/vcr_cassettes/contact_update.yml +0 -66
  79. data/spec/fixtures/vcr_cassettes/contacts_among_list.yml +0 -189
  80. data/spec/fixtures/vcr_cassettes/create_form.yml +0 -39
  81. data/spec/fixtures/vcr_cassettes/create_list.yml +0 -36
  82. data/spec/fixtures/vcr_cassettes/create_list_with_filters.yml +0 -36
  83. data/spec/fixtures/vcr_cassettes/deal_create.yml +0 -61
  84. data/spec/fixtures/vcr_cassettes/deal_example.yml +0 -166
  85. data/spec/fixtures/vcr_cassettes/deal_find.yml +0 -115
  86. data/spec/fixtures/vcr_cassettes/destroy_deal.yml +0 -221
  87. data/spec/fixtures/vcr_cassettes/fail_to_create_form.yml +0 -35
  88. data/spec/fixtures/vcr_cassettes/fail_to_create_list.yml +0 -35
  89. data/spec/fixtures/vcr_cassettes/field_among_form.yml +0 -34
  90. data/spec/fixtures/vcr_cassettes/fields_among_form.yml +0 -35
  91. data/spec/fixtures/vcr_cassettes/find_all_contacts.yml +0 -297
  92. data/spec/fixtures/vcr_cassettes/find_all_dynamic_lists.yml +0 -104
  93. data/spec/fixtures/vcr_cassettes/find_all_forms.yml +0 -15378
  94. data/spec/fixtures/vcr_cassettes/find_all_lists.yml +0 -138
  95. data/spec/fixtures/vcr_cassettes/find_all_recent_contacts.yml +0 -33
  96. data/spec/fixtures/vcr_cassettes/find_all_recent_updated_deals.yml +0 -130
  97. data/spec/fixtures/vcr_cassettes/find_all_stastic_lists.yml +0 -21876
  98. data/spec/fixtures/vcr_cassettes/form_destroy.yml +0 -64
  99. data/spec/fixtures/vcr_cassettes/form_example.yml +0 -39
  100. data/spec/fixtures/vcr_cassettes/form_find.yml +0 -69
  101. data/spec/fixtures/vcr_cassettes/form_post.yml +0 -31
  102. data/spec/fixtures/vcr_cassettes/form_submit_data.yml +0 -130
  103. data/spec/fixtures/vcr_cassettes/form_update.yml +0 -77
  104. data/spec/fixtures/vcr_cassettes/one_month_blog_posts_filter_state.yml +0 -19127
  105. data/spec/fixtures/vcr_cassettes/one_month_blog_posts_list.yml +0 -34963
  106. data/spec/fixtures/vcr_cassettes/remove_contacts_from_lists.yml +0 -315
  107. data/spec/fixtures/vcr_cassettes/topic_list.yml +0 -48
  108. data/spec/fixtures/vcr_cassettes/topics_list.yml +0 -86
@@ -32,4 +32,4 @@ describe "Deals API Live test", live: true do
32
32
  # cant find anymore
33
33
  expect { Hubspot::Deal.find(deal.deal_id) }.to raise_error
34
34
  end
35
- end
35
+ end
@@ -10,4 +10,4 @@ module CassetteHelper
10
10
  def cassette(cassette_name)
11
11
  let(:_cassette){ cassette_name }
12
12
  end
13
- end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module TestsHelper
2
- def expect_count_and_offset(&block)
2
+ def expect_count_and_offset(&block)
3
3
  it 'returns only the number of objects specified by count' do
4
4
  result = block.call(count: 2)
5
5
  expect(result.size).to eql 2
@@ -9,9 +9,9 @@ module TestsHelper
9
9
  end
10
10
 
11
11
  it 'returns objects by a specified offset' do
12
- non_offset_objects = block.call(count: 2)
12
+ non_offset_objects = block.call(count: 2)
13
13
  objects_with_offset = block.call(count: 2, offset: 2)
14
14
  expect(non_offset_objects).to_not eql objects_with_offset
15
15
  end
16
16
  end
17
- end
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubspot-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew DiMichele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.10.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +136,6 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: jeweler
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -193,14 +193,11 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  description: hubspot-ruby is a wrapper for the HubSpot REST API
196
- email: hello@omadahealth.com
196
+ email:
197
197
  executables: []
198
198
  extensions: []
199
- extra_rdoc_files:
200
- - LICENSE.txt
201
- - README.md
199
+ extra_rdoc_files: []
202
200
  files:
203
- - ".document"
204
201
  - ".rspec"
205
202
  - Gemfile
206
203
  - Gemfile.lock
@@ -212,87 +209,52 @@ files:
212
209
  - hubspot-ruby.gemspec
213
210
  - lib/hubspot-ruby.rb
214
211
  - lib/hubspot/blog.rb
212
+ - lib/hubspot/company.rb
213
+ - lib/hubspot/company_properties.rb
215
214
  - lib/hubspot/config.rb
216
215
  - lib/hubspot/connection.rb
217
216
  - lib/hubspot/contact.rb
218
217
  - lib/hubspot/contact_list.rb
219
218
  - lib/hubspot/contact_properties.rb
220
219
  - lib/hubspot/deal.rb
220
+ - lib/hubspot/deal_pipeline.rb
221
+ - lib/hubspot/deal_properties.rb
222
+ - lib/hubspot/engagement.rb
221
223
  - lib/hubspot/exceptions.rb
222
224
  - lib/hubspot/form.rb
225
+ - lib/hubspot/owner.rb
226
+ - lib/hubspot/properties.rb
227
+ - lib/hubspot/railtie.rb
223
228
  - lib/hubspot/topic.rb
224
229
  - lib/hubspot/utils.rb
225
- - lib/hubspot/version.rb
226
- - spec/fixtures/vcr_cassettes/add_contacts_to_lists.yml
227
- - spec/fixtures/vcr_cassettes/blog_list.yml
228
- - spec/fixtures/vcr_cassettes/blog_posts.yml
229
- - spec/fixtures/vcr_cassettes/blog_posts_list.yml
230
- - spec/fixtures/vcr_cassettes/contact_create.yml
231
- - spec/fixtures/vcr_cassettes/contact_create_existing_email.yml
232
- - spec/fixtures/vcr_cassettes/contact_create_invalid_email.yml
233
- - spec/fixtures/vcr_cassettes/contact_create_with_params.yml
234
- - spec/fixtures/vcr_cassettes/contact_destroy.yml
235
- - spec/fixtures/vcr_cassettes/contact_example.yml
236
- - spec/fixtures/vcr_cassettes/contact_find_by_email.yml
237
- - spec/fixtures/vcr_cassettes/contact_find_by_email_batch_mode.yml
238
- - spec/fixtures/vcr_cassettes/contact_find_by_id.yml
239
- - spec/fixtures/vcr_cassettes/contact_find_by_id_batch_mode.yml
240
- - spec/fixtures/vcr_cassettes/contact_find_by_utk.yml
241
- - spec/fixtures/vcr_cassettes/contact_find_by_utk_batch_mode.yml
242
- - spec/fixtures/vcr_cassettes/contact_list_batch_find.yml
243
- - spec/fixtures/vcr_cassettes/contact_list_destroy.yml
244
- - spec/fixtures/vcr_cassettes/contact_list_example.yml
245
- - spec/fixtures/vcr_cassettes/contact_list_find.yml
246
- - spec/fixtures/vcr_cassettes/contact_list_refresh.yml
247
- - spec/fixtures/vcr_cassettes/contact_list_update.yml
248
- - spec/fixtures/vcr_cassettes/contact_update.yml
249
- - spec/fixtures/vcr_cassettes/contacts_among_list.yml
250
- - spec/fixtures/vcr_cassettes/create_form.yml
251
- - spec/fixtures/vcr_cassettes/create_list.yml
252
- - spec/fixtures/vcr_cassettes/create_list_with_filters.yml
253
- - spec/fixtures/vcr_cassettes/deal_create.yml
254
- - spec/fixtures/vcr_cassettes/deal_example.yml
255
- - spec/fixtures/vcr_cassettes/deal_find.yml
256
- - spec/fixtures/vcr_cassettes/destroy_deal.yml
257
- - spec/fixtures/vcr_cassettes/fail_to_create_form.yml
258
- - spec/fixtures/vcr_cassettes/fail_to_create_list.yml
259
- - spec/fixtures/vcr_cassettes/field_among_form.yml
260
- - spec/fixtures/vcr_cassettes/fields_among_form.yml
261
- - spec/fixtures/vcr_cassettes/find_all_contacts.yml
262
- - spec/fixtures/vcr_cassettes/find_all_dynamic_lists.yml
263
- - spec/fixtures/vcr_cassettes/find_all_forms.yml
264
- - spec/fixtures/vcr_cassettes/find_all_lists.yml
265
- - spec/fixtures/vcr_cassettes/find_all_recent_contacts.yml
266
- - spec/fixtures/vcr_cassettes/find_all_recent_updated_deals.yml
267
- - spec/fixtures/vcr_cassettes/find_all_stastic_lists.yml
268
- - spec/fixtures/vcr_cassettes/form_destroy.yml
269
- - spec/fixtures/vcr_cassettes/form_example.yml
270
- - spec/fixtures/vcr_cassettes/form_find.yml
271
- - spec/fixtures/vcr_cassettes/form_post.yml
272
- - spec/fixtures/vcr_cassettes/form_submit_data.yml
273
- - spec/fixtures/vcr_cassettes/form_update.yml
274
- - spec/fixtures/vcr_cassettes/one_month_blog_posts_filter_state.yml
275
- - spec/fixtures/vcr_cassettes/one_month_blog_posts_list.yml
276
- - spec/fixtures/vcr_cassettes/remove_contacts_from_lists.yml
277
- - spec/fixtures/vcr_cassettes/topic_list.yml
278
- - spec/fixtures/vcr_cassettes/topics_list.yml
279
230
  - spec/lib/hubspot-ruby_spec.rb
280
231
  - spec/lib/hubspot/blog_spec.rb
232
+ - spec/lib/hubspot/company_properties_spec.rb
233
+ - spec/lib/hubspot/company_spec.rb
281
234
  - spec/lib/hubspot/config_spec.rb
282
235
  - spec/lib/hubspot/connection_spec.rb
283
236
  - spec/lib/hubspot/contact_list_spec.rb
284
237
  - spec/lib/hubspot/contact_properties_spec.rb
285
238
  - spec/lib/hubspot/contact_spec.rb
239
+ - spec/lib/hubspot/deal_properties_spec.rb
286
240
  - spec/lib/hubspot/deal_spec.rb
241
+ - spec/lib/hubspot/engagement_spec.rb
287
242
  - spec/lib/hubspot/form_spec.rb
243
+ - spec/lib/hubspot/owner_spec.rb
244
+ - spec/lib/hubspot/properties_spec.rb
288
245
  - spec/lib/hubspot/topic_spec.rb
289
246
  - spec/lib/hubspot/utils_spec.rb
247
+ - spec/lib/tasks/properties_spec.rb
248
+ - spec/live/companies_integration_spec.rb
249
+ - spec/live/companies_properties_integration_spec.rb
290
250
  - spec/live/contacts_integration_spec.rb
251
+ - spec/live/contacts_properties_integration_spec.rb
252
+ - spec/live/deal_properties_integration_spec.rb
291
253
  - spec/live/deals_integration_spec.rb
292
254
  - spec/spec_helper.rb
293
255
  - spec/support/cassette_helper.rb
294
256
  - spec/support/tests_helper.rb
295
- homepage: http://github.com/omadahealth/hubspot-ruby
257
+ homepage: http://github.com/adimichele/hubspot-ruby
296
258
  licenses: []
297
259
  metadata: {}
298
260
  post_install_message:
@@ -311,9 +273,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
273
  version: '0'
312
274
  requirements: []
313
275
  rubyforge_project:
314
- rubygems_version: 2.2.2
276
+ rubygems_version: 2.5.1
315
277
  signing_key:
316
278
  specification_version: 4
317
279
  summary: hubspot-ruby is a wrapper for the HubSpot REST API
318
280
  test_files: []
319
- has_rdoc:
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
@@ -1,9 +0,0 @@
1
- module Hubspot
2
- module Version
3
- MAJOR = 0
4
- MINOR = 1
5
- PATCH = 8
6
-
7
- STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
- end
9
- end
@@ -1,281 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/contacts/v1/lists/static?count=3&hapikey=demo
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers: {}
10
- response:
11
- status:
12
- code: 200
13
- message: OK
14
- headers:
15
- Access-Control-Allow-Credentials:
16
- - 'false'
17
- Content-Type:
18
- - application/json; charset=UTF-8
19
- Date:
20
- - Sat, 21 Feb 2015 23:44:56 GMT
21
- Vary:
22
- - Accept-Encoding
23
- - Accept-Encoding
24
- Content-Length:
25
- - '1013'
26
- Connection:
27
- - keep-alive
28
- body:
29
- encoding: UTF-8
30
- string: '{"lists":[{"metaData":{"size":0,"error":"","processing":"DONE","lastProcessingStateChangeAt":1336673990262,"lastSizeChangeAt":1424559295352},"name":"HubSpot-HootSuite
31
- App","dynamic":false,"filters":[[{"property":"twitterhandle","withinTimeMode":"PAST","operator":"IS_NOT_EMPTY"}]],"portalId":62515,"createdAt":1336673951299,"listId":2,"updatedAt":1336673951299,"internalListId":2},{"metaData":{"size":0,"error":"","processing":"DONE","lastProcessingStateChangeAt":1344891893390,"lastSizeChangeAt":1424561579485},"name":"staticTest","dynamic":false,"filters":[],"portalId":62515,"createdAt":1344891893390,"listId":3,"updatedAt":1344891893390,"listType":"STATIC","internalListId":5},{"metaData":{"size":2,"error":"","processing":"DONE","lastProcessingStateChangeAt":1345057450679,"lastSizeChangeAt":1421930685051},"name":"Workface
32
- Leads","dynamic":false,"filters":[],"portalId":62515,"createdAt":1345057450679,"listId":4,"updatedAt":1345057450679,"listType":"STATIC","internalListId":6}],"offset":3,"has-more":true}'
33
- http_version:
34
- recorded_at: Sat, 21 Feb 2015 23:44:56 GMT
35
- - request:
36
- method: post
37
- uri: https://api.hubapi.com/contacts/v1/lists/4/add?hapikey=demo
38
- body:
39
- encoding: UTF-8
40
- string: '{"vids":[82325]}'
41
- headers:
42
- Content-Type:
43
- - application/json
44
- response:
45
- status:
46
- code: 200
47
- message: OK
48
- headers:
49
- Access-Control-Allow-Credentials:
50
- - 'false'
51
- Content-Type:
52
- - application/json; charset=UTF-8
53
- Date:
54
- - Sat, 21 Feb 2015 23:44:56 GMT
55
- Vary:
56
- - Accept-Encoding
57
- - Accept-Encoding
58
- Content-Length:
59
- - '29'
60
- Connection:
61
- - keep-alive
62
- body:
63
- encoding: UTF-8
64
- string: '{"updated":[],"discarded":[]}'
65
- http_version:
66
- recorded_at: Sat, 21 Feb 2015 23:44:56 GMT
67
- - request:
68
- method: get
69
- uri: https://api.hubapi.com/contacts/v1/lists/4/contacts/all?count=1&hapikey=demo&property=email
70
- body:
71
- encoding: US-ASCII
72
- string: ''
73
- headers: {}
74
- response:
75
- status:
76
- code: 200
77
- message: OK
78
- headers:
79
- Access-Control-Allow-Credentials:
80
- - 'false'
81
- Content-Type:
82
- - application/json; charset=UTF-8
83
- Date:
84
- - Sat, 21 Feb 2015 23:44:56 GMT
85
- Vary:
86
- - Accept-Encoding
87
- - Accept-Encoding
88
- Content-Length:
89
- - '957'
90
- Connection:
91
- - keep-alive
92
- body:
93
- encoding: UTF-8
94
- string: '{"contacts":[{"addedAt":1410377496034,"vid":240665,"canonical-vid":240665,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mNsNODXC4cCiO1rRF5kyLVGEzhXV_HMmNlQFhtWelfM4TLn-3ue7pRoiEYvv12LuuHq3RfETobGBrMa-UxZSM_MWm650qp0oRonwZeiWcXzoAUCMOknG2A4KJR9IBdCOP3T1Ur7","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNsNODXC4cCiO1rRF5kyLVGEzhXV_HMmNlQFhtWelfM4TLn-3ue7pRoiEYvv12LuuHq3RfETobGBrMa-UxZSM_MWm650qp0oRonwZeiWcXzoAUCMOknG2A4KJR9IBdCOP3T1Ur7/","properties":{"lastmodifieddate":{"value":"1423206291283"},"email":{"value":"jimmy@jack.com"}},"form-submissions":[],"identity-profiles":[{"vid":240665,"saved-at-timestamp":1410370949852,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"jimmy@jack.com","timestamp":1410370949831},{"type":"LEAD_GUID","value":"17af62d8-4228-4033-976d-ce9bad8b3fb4","timestamp":1410370949840}]}],"merge-audits":[]}],"has-more":true,"vid-offset":240665}'
95
- http_version:
96
- recorded_at: Sat, 21 Feb 2015 23:44:56 GMT
97
- - request:
98
- method: get
99
- uri: https://api.hubapi.com/contacts/v1/lists/dynamic?count=1&hapikey=demo
100
- body:
101
- encoding: US-ASCII
102
- string: ''
103
- headers: {}
104
- response:
105
- status:
106
- code: 200
107
- message: OK
108
- headers:
109
- Access-Control-Allow-Credentials:
110
- - 'false'
111
- Content-Type:
112
- - application/json; charset=UTF-8
113
- Date:
114
- - Sat, 21 Feb 2015 23:44:57 GMT
115
- Vary:
116
- - Accept-Encoding
117
- - Accept-Encoding
118
- Content-Length:
119
- - '421'
120
- Connection:
121
- - keep-alive
122
- body:
123
- encoding: UTF-8
124
- string: '{"lists":[{"dynamic":true,"metaData":{"processing":"DONE","lastProcessingStateChangeAt":1335448864306,"error":"","lastSizeChangeAt":1424402567742,"size":3355},"filters":[[{"operator":"IS_NOT_EMPTY","withinTimeMode":"PAST","property":"twitterhandle"}]],"portalId":62515,"createdAt":1335448813688,"listId":1,"updatedAt":1335448813688,"listType":"DYNAMIC","internalListId":1,"name":"twitterers"}],"offset":1,"has-more":true}'
125
- http_version:
126
- recorded_at: Sat, 21 Feb 2015 23:44:56 GMT
127
- - request:
128
- method: post
129
- uri: https://api.hubapi.com/contacts/v1/lists/1/add?hapikey=demo
130
- body:
131
- encoding: UTF-8
132
- string: '{"vids":[82325]}'
133
- headers:
134
- Content-Type:
135
- - application/json
136
- response:
137
- status:
138
- code: 400
139
- message: Bad Request
140
- headers:
141
- Access-Control-Allow-Credentials:
142
- - 'false'
143
- Content-Type:
144
- - application/json; charset=UTF-8
145
- Date:
146
- - Sat, 21 Feb 2015 23:44:57 GMT
147
- Vary:
148
- - Accept-Encoding
149
- - Accept-Encoding
150
- Content-Length:
151
- - '124'
152
- Connection:
153
- - keep-alive
154
- body:
155
- encoding: UTF-8
156
- string: '{"status":"error","message":"Can not operate manually on a dynamic
157
- list","requestId":"3b34806d-ad9e-405d-b0b6-4f5a02b16b10"}'
158
- http_version:
159
- recorded_at: Sat, 21 Feb 2015 23:44:57 GMT
160
- - request:
161
- method: get
162
- uri: https://api.hubapi.com/contacts/v1/contact/vid/1/profile?hapikey=demo
163
- body:
164
- encoding: US-ASCII
165
- string: ''
166
- headers: {}
167
- response:
168
- status:
169
- code: 404
170
- message: Not Found
171
- headers:
172
- Access-Control-Allow-Credentials:
173
- - 'false'
174
- Content-Type:
175
- - application/json; charset=UTF-8
176
- Date:
177
- - Sat, 21 Feb 2015 23:46:15 GMT
178
- Vary:
179
- - Accept-Encoding
180
- - Accept-Encoding
181
- Content-Length:
182
- - '104'
183
- Connection:
184
- - keep-alive
185
- body:
186
- encoding: UTF-8
187
- string: '{"status":"error","message":"contact does not exist","requestId":"e101ec44-b2f6-40d1-a634-167d2dd5d3f7"}'
188
- http_version:
189
- recorded_at: Sat, 21 Feb 2015 23:46:15 GMT
190
- - request:
191
- method: get
192
- uri: https://api.hubapi.com/contacts/v1/contact/vid/4/profile?hapikey=demo
193
- body:
194
- encoding: US-ASCII
195
- string: ''
196
- headers: {}
197
- response:
198
- status:
199
- code: 404
200
- message: Not Found
201
- headers:
202
- Access-Control-Allow-Credentials:
203
- - 'false'
204
- Content-Type:
205
- - application/json; charset=UTF-8
206
- Date:
207
- - Sun, 22 Feb 2015 19:54:20 GMT
208
- Vary:
209
- - Accept-Encoding
210
- - Accept-Encoding
211
- Content-Length:
212
- - '104'
213
- Connection:
214
- - keep-alive
215
- body:
216
- encoding: UTF-8
217
- string: '{"status":"error","message":"contact does not exist","requestId":"ac145de3-e950-49bf-ac3e-0b842c6df1a3"}'
218
- http_version:
219
- recorded_at: Sun, 22 Feb 2015 19:54:20 GMT
220
- - request:
221
- method: get
222
- uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?count=1&hapikey=demo
223
- body:
224
- encoding: US-ASCII
225
- string: ''
226
- headers: {}
227
- response:
228
- status:
229
- code: 200
230
- message: OK
231
- headers:
232
- Access-Control-Allow-Credentials:
233
- - 'false'
234
- Content-Type:
235
- - application/json; charset=UTF-8
236
- Date:
237
- - Sun, 22 Feb 2015 19:55:34 GMT
238
- Vary:
239
- - Accept-Encoding
240
- - Accept-Encoding
241
- Content-Length:
242
- - '1290'
243
- Connection:
244
- - keep-alive
245
- body:
246
- encoding: UTF-8
247
- string: '{"contacts":[{"addedAt":1405347851360,"vid":154835,"canonical-vid":154835,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mOjbX1LstSdcbofAXxlASdeCjS9HRg20tm1ulyNHjfcLp9-B3chMI9VqXuHnxQ5FY6VdS9KRsIaaOJxRbsCkf7XmvSI1dEV17_yblF_iklHItsX-vQvFVMhxumtCI5zaoZ-c4_r","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mOjbX1LstSdcbofAXxlASdeCjS9HRg20tm1ulyNHjfcLp9-B3chMI9VqXuHnxQ5FY6VdS9KRsIaaOJxRbsCkf7XmvSI1dEV17_yblF_iklHItsX-vQvFVMhxumtCI5zaoZ-c4_r/","properties":{"firstname":{"value":"HubSpot"},"lastmodifieddate":{"value":"1423205608157"},"lastname":{"value":"Test"}},"form-submissions":[{"conversion-id":"b18f9fd8-b8d3-49e5-898a-ac301fac93e9","timestamp":1405347851180,"form-id":"b844ad5e-32bd-41e1-b0e6-ed990c5f3d1b","portal-id":62515,"page-url":"http://demo.hubapi.com/your-stunning-headline-30","page-title":"Your
248
- stunning headline!","page-id":"324527","title":"My New Form","meta-data":[]}],"identity-profiles":[{"vid":154835,"saved-at-timestamp":1405347851237,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"test@hubspot.com","timestamp":1405347851180},{"type":"LEAD_GUID","value":"c8f20860-d3d6-4b57-b092-86a07cebdcbc","timestamp":1405347851237}]}],"merge-audits":[]}],"has-more":true,"vid-offset":154835}'
249
- http_version:
250
- recorded_at: Sun, 22 Feb 2015 19:55:34 GMT
251
- - request:
252
- method: get
253
- uri: https://api.hubapi.com/contacts/v1/contact/vid/2/profile?hapikey=demo
254
- body:
255
- encoding: US-ASCII
256
- string: ''
257
- headers: {}
258
- response:
259
- status:
260
- code: 404
261
- message: Not Found
262
- headers:
263
- Access-Control-Allow-Credentials:
264
- - 'false'
265
- Content-Type:
266
- - application/json; charset=UTF-8
267
- Date:
268
- - Wed, 25 Feb 2015 18:02:43 GMT
269
- Vary:
270
- - Accept-Encoding
271
- - Accept-Encoding
272
- Content-Length:
273
- - '104'
274
- Connection:
275
- - keep-alive
276
- body:
277
- encoding: UTF-8
278
- string: '{"status":"error","message":"contact does not exist","requestId":"eb80c0ec-fe1e-49f7-8007-69ab7fc6ab57"}'
279
- http_version:
280
- recorded_at: Wed, 25 Feb 2015 18:02:42 GMT
281
- recorded_with: VCR 2.4.0