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.
- checksums.yaml +4 -4
- data/Gemfile +2 -22
- data/Gemfile.lock +14 -11
- data/LICENSE.txt +0 -2
- data/README.md +8 -6
- data/RELEASING.md +4 -5
- data/Rakefile +2 -17
- data/hubspot-ruby.gemspec +20 -157
- data/lib/hubspot-ruby.rb +10 -0
- data/lib/hubspot/blog.rb +1 -2
- data/lib/hubspot/company.rb +149 -0
- data/lib/hubspot/company_properties.rb +59 -0
- data/lib/hubspot/config.rb +10 -4
- data/lib/hubspot/connection.rb +12 -4
- data/lib/hubspot/contact.rb +52 -31
- data/lib/hubspot/contact_list.rb +16 -16
- data/lib/hubspot/contact_properties.rb +53 -6
- data/lib/hubspot/deal.rb +2 -2
- data/lib/hubspot/deal_pipeline.rb +43 -0
- data/lib/hubspot/deal_properties.rb +59 -0
- data/lib/hubspot/engagement.rb +133 -0
- data/lib/hubspot/exceptions.rb +1 -1
- data/lib/hubspot/form.rb +20 -20
- data/lib/hubspot/owner.rb +49 -0
- data/lib/hubspot/properties.rb +119 -0
- data/lib/hubspot/railtie.rb +10 -0
- data/lib/hubspot/topic.rb +2 -2
- data/lib/hubspot/utils.rb +106 -3
- data/spec/lib/hubspot/blog_spec.rb +2 -0
- data/spec/lib/hubspot/company_properties_spec.rb +239 -0
- data/spec/lib/hubspot/company_spec.rb +190 -0
- data/spec/lib/hubspot/config_spec.rb +1 -1
- data/spec/lib/hubspot/connection_spec.rb +33 -27
- data/spec/lib/hubspot/contact_list_spec.rb +61 -61
- data/spec/lib/hubspot/contact_properties_spec.rb +234 -3
- data/spec/lib/hubspot/contact_spec.rb +140 -71
- data/spec/lib/hubspot/deal_properties_spec.rb +254 -0
- data/spec/lib/hubspot/engagement_spec.rb +87 -0
- data/spec/lib/hubspot/form_spec.rb +72 -60
- data/spec/lib/hubspot/owner_spec.rb +56 -0
- data/spec/lib/hubspot/properties_spec.rb +45 -0
- data/spec/lib/hubspot/topic_spec.rb +0 -1
- data/spec/lib/hubspot/utils_spec.rb +113 -15
- data/spec/lib/tasks/properties_spec.rb +90 -0
- data/spec/live/companies_integration_spec.rb +23 -0
- data/spec/live/companies_properties_integration_spec.rb +120 -0
- data/spec/live/contacts_integration_spec.rb +1 -1
- data/spec/live/contacts_properties_integration_spec.rb +120 -0
- data/spec/live/deal_properties_integration_spec.rb +123 -0
- data/spec/live/deals_integration_spec.rb +1 -1
- data/spec/support/cassette_helper.rb +1 -1
- data/spec/support/tests_helper.rb +3 -3
- metadata +39 -78
- data/.document +0 -5
- data/lib/hubspot/version.rb +0 -9
- data/spec/fixtures/vcr_cassettes/add_contacts_to_lists.yml +0 -281
- data/spec/fixtures/vcr_cassettes/blog_list.yml +0 -180
- data/spec/fixtures/vcr_cassettes/blog_posts.yml +0 -107
- data/spec/fixtures/vcr_cassettes/blog_posts_list.yml +0 -6463
- data/spec/fixtures/vcr_cassettes/contact_create.yml +0 -64
- data/spec/fixtures/vcr_cassettes/contact_create_existing_email.yml +0 -62
- data/spec/fixtures/vcr_cassettes/contact_create_invalid_email.yml +0 -63
- data/spec/fixtures/vcr_cassettes/contact_create_with_params.yml +0 -64
- data/spec/fixtures/vcr_cassettes/contact_destroy.yml +0 -131
- data/spec/fixtures/vcr_cassettes/contact_example.yml +0 -32
- data/spec/fixtures/vcr_cassettes/contact_find_by_email.yml +0 -59
- data/spec/fixtures/vcr_cassettes/contact_find_by_email_batch_mode.yml +0 -509
- data/spec/fixtures/vcr_cassettes/contact_find_by_id.yml +0 -59
- data/spec/fixtures/vcr_cassettes/contact_find_by_id_batch_mode.yml +0 -33
- data/spec/fixtures/vcr_cassettes/contact_find_by_utk.yml +0 -83
- data/spec/fixtures/vcr_cassettes/contact_find_by_utk_batch_mode.yml +0 -33
- data/spec/fixtures/vcr_cassettes/contact_list_batch_find.yml +0 -65
- data/spec/fixtures/vcr_cassettes/contact_list_destroy.yml +0 -63
- data/spec/fixtures/vcr_cassettes/contact_list_example.yml +0 -33
- data/spec/fixtures/vcr_cassettes/contact_list_find.yml +0 -96
- data/spec/fixtures/vcr_cassettes/contact_list_refresh.yml +0 -33
- data/spec/fixtures/vcr_cassettes/contact_list_update.yml +0 -36
- data/spec/fixtures/vcr_cassettes/contact_update.yml +0 -66
- data/spec/fixtures/vcr_cassettes/contacts_among_list.yml +0 -189
- data/spec/fixtures/vcr_cassettes/create_form.yml +0 -39
- data/spec/fixtures/vcr_cassettes/create_list.yml +0 -36
- data/spec/fixtures/vcr_cassettes/create_list_with_filters.yml +0 -36
- data/spec/fixtures/vcr_cassettes/deal_create.yml +0 -61
- data/spec/fixtures/vcr_cassettes/deal_example.yml +0 -166
- data/spec/fixtures/vcr_cassettes/deal_find.yml +0 -115
- data/spec/fixtures/vcr_cassettes/destroy_deal.yml +0 -221
- data/spec/fixtures/vcr_cassettes/fail_to_create_form.yml +0 -35
- data/spec/fixtures/vcr_cassettes/fail_to_create_list.yml +0 -35
- data/spec/fixtures/vcr_cassettes/field_among_form.yml +0 -34
- data/spec/fixtures/vcr_cassettes/fields_among_form.yml +0 -35
- data/spec/fixtures/vcr_cassettes/find_all_contacts.yml +0 -297
- data/spec/fixtures/vcr_cassettes/find_all_dynamic_lists.yml +0 -104
- data/spec/fixtures/vcr_cassettes/find_all_forms.yml +0 -15378
- data/spec/fixtures/vcr_cassettes/find_all_lists.yml +0 -138
- data/spec/fixtures/vcr_cassettes/find_all_recent_contacts.yml +0 -33
- data/spec/fixtures/vcr_cassettes/find_all_recent_updated_deals.yml +0 -130
- data/spec/fixtures/vcr_cassettes/find_all_stastic_lists.yml +0 -21876
- data/spec/fixtures/vcr_cassettes/form_destroy.yml +0 -64
- data/spec/fixtures/vcr_cassettes/form_example.yml +0 -39
- data/spec/fixtures/vcr_cassettes/form_find.yml +0 -69
- data/spec/fixtures/vcr_cassettes/form_post.yml +0 -31
- data/spec/fixtures/vcr_cassettes/form_submit_data.yml +0 -130
- data/spec/fixtures/vcr_cassettes/form_update.yml +0 -77
- data/spec/fixtures/vcr_cassettes/one_month_blog_posts_filter_state.yml +0 -19127
- data/spec/fixtures/vcr_cassettes/one_month_blog_posts_list.yml +0 -34963
- data/spec/fixtures/vcr_cassettes/remove_contacts_from_lists.yml +0 -315
- data/spec/fixtures/vcr_cassettes/topic_list.yml +0 -48
- data/spec/fixtures/vcr_cassettes/topics_list.yml +0 -86
@@ -1,315 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/lists/static?count=2&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:32:57 GMT
|
21
|
-
Vary:
|
22
|
-
- Accept-Encoding
|
23
|
-
- Accept-Encoding
|
24
|
-
Content-Length:
|
25
|
-
- '709'
|
26
|
-
Connection:
|
27
|
-
- keep-alive
|
28
|
-
body:
|
29
|
-
encoding: UTF-8
|
30
|
-
string: '{"lists":[{"metaData":{"processing":"DONE","lastProcessingStateChangeAt":1336673990262,"lastSizeChangeAt":1424559295352,"error":"","size":0},"dynamic":false,"portalId":62515,"createdAt":1336673951299,"updatedAt":1336673951299,"listId":2,"filters":[[{"operator":"IS_NOT_EMPTY","withinTimeMode":"PAST","property":"twitterhandle"}]],"internalListId":2,"name":"HubSpot-HootSuite
|
31
|
-
App"},{"metaData":{"processing":"DONE","lastProcessingStateChangeAt":1344891893390,"lastSizeChangeAt":1424561205790,"error":"","size":2},"dynamic":false,"portalId":62515,"createdAt":1344891893390,"listType":"STATIC","updatedAt":1344891893390,"listId":3,"filters":[],"internalListId":5,"name":"staticTest"}],"offset":2,"has-more":true}'
|
32
|
-
http_version:
|
33
|
-
recorded_at: Sat, 21 Feb 2015 23:32:57 GMT
|
34
|
-
- request:
|
35
|
-
method: get
|
36
|
-
uri: https://api.hubapi.com/contacts/v1/lists/3/contacts/all?count=2&hapikey=demo&property=email
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ''
|
40
|
-
headers: {}
|
41
|
-
response:
|
42
|
-
status:
|
43
|
-
code: 200
|
44
|
-
message: OK
|
45
|
-
headers:
|
46
|
-
Access-Control-Allow-Credentials:
|
47
|
-
- 'false'
|
48
|
-
Content-Type:
|
49
|
-
- application/json; charset=UTF-8
|
50
|
-
Date:
|
51
|
-
- Sat, 21 Feb 2015 23:32:58 GMT
|
52
|
-
Vary:
|
53
|
-
- Accept-Encoding
|
54
|
-
- Accept-Encoding
|
55
|
-
Content-Length:
|
56
|
-
- '1887'
|
57
|
-
Connection:
|
58
|
-
- keep-alive
|
59
|
-
body:
|
60
|
-
encoding: UTF-8
|
61
|
-
string: '{"contacts":[{"addedAt":1405720281340,"vid":233443,"canonical-vid":233443,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mPb8t4UMyhKYuCYQn5-imBRBo9BDjXQZ8Du3oj2bc29H3WXKC3HCkANkFR7pyr73O37uRg6W2nvihx652BOcXd8SBWt772Z4W_NVPWNbrejPFyiik3humvniib1NqstlYsVqZ4r","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mPb8t4UMyhKYuCYQn5-imBRBo9BDjXQZ8Du3oj2bc29H3WXKC3HCkANkFR7pyr73O37uRg6W2nvihx652BOcXd8SBWt772Z4W_NVPWNbrejPFyiik3humvniib1NqstlYsVqZ4r/","properties":{"lastmodifieddate":{"value":"1423206192349"},"email":{"value":"test@123456789test.com"}},"form-submissions":[],"identity-profiles":[{"vid":233443,"saved-at-timestamp":1405720240435,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"test@123456789test.com","timestamp":1405720240352},{"type":"LEAD_GUID","value":"c5d75e47-8abe-4977-a494-d6a5243dd6bc","timestamp":1405720240369}]}],"merge-audits":[]},{"addedAt":1406676072454,"vid":234368,"canonical-vid":234368,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mPsanEOa85h8HlhRpZ-_cfVVkU55CswfPRsIejQiqOZVYiEPg2hPDdKj_s3RM8n5cjxuiPPd5e3jRrdJ8R41C7NCYSXJABeC_LtToznJDSmpDJnFdRIrzZi9Q23j0x7Q2WOMZsz","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mPsanEOa85h8HlhRpZ-_cfVVkU55CswfPRsIejQiqOZVYiEPg2hPDdKj_s3RM8n5cjxuiPPd5e3jRrdJ8R41C7NCYSXJABeC_LtToznJDSmpDJnFdRIrzZi9Q23j0x7Q2WOMZsz/","properties":{"lastmodifieddate":{"value":"1423206205727"},"email":{"value":"osmond@azuqua.com"}},"form-submissions":[],"identity-profiles":[{"vid":234368,"saved-at-timestamp":1406666653355,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"osmond@azuqua.com","timestamp":1406666653316},{"type":"LEAD_GUID","value":"68f561be-6908-4e97-880f-b372d3bb11a8","timestamp":1406666653342}]}],"merge-audits":[]}],"has-more":false,"vid-offset":234368}'
|
62
|
-
http_version:
|
63
|
-
recorded_at: Sat, 21 Feb 2015 23:32:58 GMT
|
64
|
-
- request:
|
65
|
-
method: post
|
66
|
-
uri: https://api.hubapi.com/contacts/v1/lists/3/remove?hapikey=demo
|
67
|
-
body:
|
68
|
-
encoding: UTF-8
|
69
|
-
string: '{"vids":[233443,234368]}'
|
70
|
-
headers:
|
71
|
-
Content-Type:
|
72
|
-
- application/json
|
73
|
-
response:
|
74
|
-
status:
|
75
|
-
code: 200
|
76
|
-
message: OK
|
77
|
-
headers:
|
78
|
-
Access-Control-Allow-Credentials:
|
79
|
-
- 'false'
|
80
|
-
Content-Type:
|
81
|
-
- application/json; charset=UTF-8
|
82
|
-
Date:
|
83
|
-
- Sat, 21 Feb 2015 23:32:59 GMT
|
84
|
-
Vary:
|
85
|
-
- Accept-Encoding
|
86
|
-
- Accept-Encoding
|
87
|
-
Content-Length:
|
88
|
-
- '42'
|
89
|
-
Connection:
|
90
|
-
- keep-alive
|
91
|
-
body:
|
92
|
-
encoding: UTF-8
|
93
|
-
string: '{"updated":[233443,234368],"discarded":[]}'
|
94
|
-
http_version:
|
95
|
-
recorded_at: Sat, 21 Feb 2015 23:32:59 GMT
|
96
|
-
- request:
|
97
|
-
method: get
|
98
|
-
uri: https://api.hubapi.com/contacts/v1/lists/dynamic?count=1&hapikey=demo
|
99
|
-
body:
|
100
|
-
encoding: US-ASCII
|
101
|
-
string: ''
|
102
|
-
headers: {}
|
103
|
-
response:
|
104
|
-
status:
|
105
|
-
code: 200
|
106
|
-
message: OK
|
107
|
-
headers:
|
108
|
-
Access-Control-Allow-Credentials:
|
109
|
-
- 'false'
|
110
|
-
Content-Type:
|
111
|
-
- application/json; charset=UTF-8
|
112
|
-
Date:
|
113
|
-
- Sat, 21 Feb 2015 23:33:00 GMT
|
114
|
-
Vary:
|
115
|
-
- Accept-Encoding
|
116
|
-
- Accept-Encoding
|
117
|
-
Content-Length:
|
118
|
-
- '421'
|
119
|
-
Connection:
|
120
|
-
- keep-alive
|
121
|
-
body:
|
122
|
-
encoding: UTF-8
|
123
|
-
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}'
|
124
|
-
http_version:
|
125
|
-
recorded_at: Sat, 21 Feb 2015 23:33:00 GMT
|
126
|
-
- request:
|
127
|
-
method: get
|
128
|
-
uri: https://api.hubapi.com/contacts/v1/lists/1/contacts/recent?count=1&hapikey=demo&property=email
|
129
|
-
body:
|
130
|
-
encoding: US-ASCII
|
131
|
-
string: ''
|
132
|
-
headers: {}
|
133
|
-
response:
|
134
|
-
status:
|
135
|
-
code: 200
|
136
|
-
message: OK
|
137
|
-
headers:
|
138
|
-
Access-Control-Allow-Credentials:
|
139
|
-
- 'false'
|
140
|
-
Content-Type:
|
141
|
-
- application/json; charset=UTF-8
|
142
|
-
Date:
|
143
|
-
- Sat, 21 Feb 2015 23:33:02 GMT
|
144
|
-
Vary:
|
145
|
-
- Accept-Encoding
|
146
|
-
- Accept-Encoding
|
147
|
-
Content-Length:
|
148
|
-
- '1021'
|
149
|
-
Connection:
|
150
|
-
- keep-alive
|
151
|
-
body:
|
152
|
-
encoding: UTF-8
|
153
|
-
string: '{"contacts":[{"addedAt":1424402567710,"vid":263687,"canonical-vid":263687,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mOLQAb6JByotsEJIGvfPTBqk3_9vvz3ee2-Q9su_4UEimZcZdxTwYjMp0qZuqFqmaOFhHtul-HVvM6-J83RtYrGl0x37FyQZhpiH28TMzUq8MPqWsFNNQp3ZKTnmTeG4oLnHYhU","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mOLQAb6JByotsEJIGvfPTBqk3_9vvz3ee2-Q9su_4UEimZcZdxTwYjMp0qZuqFqmaOFhHtul-HVvM6-J83RtYrGl0x37FyQZhpiH28TMzUq8MPqWsFNNQp3ZKTnmTeG4oLnHYhU/","properties":{"lastmodifieddate":{"value":"1424402575285"},"email":{"value":"andrewglover+pivotdesk@gmail.com"}},"form-submissions":[],"identity-profiles":[{"vid":263687,"saved-at-timestamp":1424379142579,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"andrewglover+pivotdesk@gmail.com","timestamp":1424379142521},{"type":"LEAD_GUID","value":"95df8bed-3940-4f27-af69-076db8cd0d72","timestamp":1424379142525}]}],"merge-audits":[]}],"has-more":true,"vid-offset":263687,"time-offset":1424402567710}'
|
154
|
-
http_version:
|
155
|
-
recorded_at: Sat, 21 Feb 2015 23:33:02 GMT
|
156
|
-
- request:
|
157
|
-
method: post
|
158
|
-
uri: https://api.hubapi.com/contacts/v1/lists/1/remove?hapikey=demo
|
159
|
-
body:
|
160
|
-
encoding: UTF-8
|
161
|
-
string: '{"vids":[263687]}'
|
162
|
-
headers:
|
163
|
-
Content-Type:
|
164
|
-
- application/json
|
165
|
-
response:
|
166
|
-
status:
|
167
|
-
code: 400
|
168
|
-
message: Bad Request
|
169
|
-
headers:
|
170
|
-
Access-Control-Allow-Credentials:
|
171
|
-
- 'false'
|
172
|
-
Content-Type:
|
173
|
-
- application/json; charset=UTF-8
|
174
|
-
Date:
|
175
|
-
- Sat, 21 Feb 2015 23:33:29 GMT
|
176
|
-
Vary:
|
177
|
-
- Accept-Encoding
|
178
|
-
- Accept-Encoding
|
179
|
-
Content-Length:
|
180
|
-
- '124'
|
181
|
-
Connection:
|
182
|
-
- keep-alive
|
183
|
-
body:
|
184
|
-
encoding: UTF-8
|
185
|
-
string: '{"status":"error","message":"Can not operate manually on a dynamic
|
186
|
-
list","requestId":"10ad0135-43f1-4c8d-bf84-16d1dbb83ec4"}'
|
187
|
-
http_version:
|
188
|
-
recorded_at: Sat, 21 Feb 2015 23:33:29 GMT
|
189
|
-
- request:
|
190
|
-
method: post
|
191
|
-
uri: https://api.hubapi.com/contacts/v1/lists/3/add?hapikey=demo
|
192
|
-
body:
|
193
|
-
encoding: UTF-8
|
194
|
-
string: '{"vids":[82325]}'
|
195
|
-
headers:
|
196
|
-
Content-Type:
|
197
|
-
- application/json
|
198
|
-
response:
|
199
|
-
status:
|
200
|
-
code: 200
|
201
|
-
message: OK
|
202
|
-
headers:
|
203
|
-
Access-Control-Allow-Credentials:
|
204
|
-
- 'false'
|
205
|
-
Content-Type:
|
206
|
-
- application/json; charset=UTF-8
|
207
|
-
Date:
|
208
|
-
- Sat, 21 Feb 2015 23:43:36 GMT
|
209
|
-
Vary:
|
210
|
-
- Accept-Encoding
|
211
|
-
- Accept-Encoding
|
212
|
-
Content-Length:
|
213
|
-
- '29'
|
214
|
-
Connection:
|
215
|
-
- keep-alive
|
216
|
-
body:
|
217
|
-
encoding: UTF-8
|
218
|
-
string: '{"updated":[],"discarded":[]}'
|
219
|
-
http_version:
|
220
|
-
recorded_at: Sat, 21 Feb 2015 23:43:36 GMT
|
221
|
-
- request:
|
222
|
-
method: get
|
223
|
-
uri: https://api.hubapi.com/contacts/v1/lists/static?count=3&hapikey=demo
|
224
|
-
body:
|
225
|
-
encoding: US-ASCII
|
226
|
-
string: ''
|
227
|
-
headers: {}
|
228
|
-
response:
|
229
|
-
status:
|
230
|
-
code: 200
|
231
|
-
message: OK
|
232
|
-
headers:
|
233
|
-
Access-Control-Allow-Credentials:
|
234
|
-
- 'false'
|
235
|
-
Content-Type:
|
236
|
-
- application/json; charset=UTF-8
|
237
|
-
Date:
|
238
|
-
- Sat, 21 Feb 2015 23:53:00 GMT
|
239
|
-
Vary:
|
240
|
-
- Accept-Encoding
|
241
|
-
- Accept-Encoding
|
242
|
-
Content-Length:
|
243
|
-
- '1013'
|
244
|
-
Connection:
|
245
|
-
- keep-alive
|
246
|
-
body:
|
247
|
-
encoding: UTF-8
|
248
|
-
string: '{"lists":[{"metaData":{"size":0,"error":"","processing":"DONE","lastProcessingStateChangeAt":1336673990262,"lastSizeChangeAt":1424559295352},"name":"HubSpot-HootSuite
|
249
|
-
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
|
250
|
-
Leads","dynamic":false,"filters":[],"portalId":62515,"createdAt":1345057450679,"listId":4,"updatedAt":1345057450679,"listType":"STATIC","internalListId":6}],"offset":3,"has-more":true}'
|
251
|
-
http_version:
|
252
|
-
recorded_at: Sat, 21 Feb 2015 23:53:00 GMT
|
253
|
-
- request:
|
254
|
-
method: get
|
255
|
-
uri: https://api.hubapi.com/contacts/v1/lists/4/contacts/all?count=2&hapikey=demo&property=email
|
256
|
-
body:
|
257
|
-
encoding: US-ASCII
|
258
|
-
string: ''
|
259
|
-
headers: {}
|
260
|
-
response:
|
261
|
-
status:
|
262
|
-
code: 200
|
263
|
-
message: OK
|
264
|
-
headers:
|
265
|
-
Access-Control-Allow-Credentials:
|
266
|
-
- 'false'
|
267
|
-
Content-Type:
|
268
|
-
- application/json; charset=UTF-8
|
269
|
-
Date:
|
270
|
-
- Sat, 21 Feb 2015 23:53:00 GMT
|
271
|
-
Vary:
|
272
|
-
- Accept-Encoding
|
273
|
-
- Accept-Encoding
|
274
|
-
Content-Length:
|
275
|
-
- '1887'
|
276
|
-
Connection:
|
277
|
-
- keep-alive
|
278
|
-
body:
|
279
|
-
encoding: UTF-8
|
280
|
-
string: '{"contacts":[{"addedAt":1410377496034,"vid":240665,"canonical-vid":240665,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mO5qqTDBdnw_I_JbldGAIgeB8U3qtUH69ihLg_M8d4xhcp4fC8R_sFqvnYTZN2NEooIsX3i9HKLBy18vtrja6mAlfukTGxvdrUzqpYrVjfBJDGDFaa2sTI4f7xjv-oZMAJVbz4I","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mO5qqTDBdnw_I_JbldGAIgeB8U3qtUH69ihLg_M8d4xhcp4fC8R_sFqvnYTZN2NEooIsX3i9HKLBy18vtrja6mAlfukTGxvdrUzqpYrVjfBJDGDFaa2sTI4f7xjv-oZMAJVbz4I/","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":[]},{"addedAt":1421930684995,"vid":261954,"canonical-vid":261954,"merged-vids":[],"portal-id":62515,"is-contact":true,"profile-token":"AO_T-mNkRvHRVrSIalWLdVC12ZNilrVAtNlJZj5LHSc40rCrbA5SU5AHrYXFNzW26yrCUh9PsxeMY7pubavabTl2CFEGsWWfnSYlmDjaBFn4awtbT8tovxCcmPOu4zvWLNrgNDbWTgzx","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNkRvHRVrSIalWLdVC12ZNilrVAtNlJZj5LHSc40rCrbA5SU5AHrYXFNzW26yrCUh9PsxeMY7pubavabTl2CFEGsWWfnSYlmDjaBFn4awtbT8tovxCcmPOu4zvWLNrgNDbWTgzx/","properties":{"lastmodifieddate":{"value":"1423206602823"},"email":{"value":"joelstephen11@stripes.com"}},"form-submissions":[],"identity-profiles":[{"vid":261954,"saved-at-timestamp":1421928766400,"deleted-changed-timestamp":0,"identities":[{"type":"EMAIL","value":"joelstephen11@stripes.com","timestamp":1421928766277},{"type":"LEAD_GUID","value":"3afe6c95-7e83-4a48-a55d-17af2eab05b5","timestamp":1421928766360}]}],"merge-audits":[]}],"has-more":false,"vid-offset":261954}'
|
281
|
-
http_version:
|
282
|
-
recorded_at: Sat, 21 Feb 2015 23:53:00 GMT
|
283
|
-
- request:
|
284
|
-
method: post
|
285
|
-
uri: https://api.hubapi.com/contacts/v1/lists/4/remove?hapikey=demo
|
286
|
-
body:
|
287
|
-
encoding: UTF-8
|
288
|
-
string: '{"vids":[240665,261954]}'
|
289
|
-
headers:
|
290
|
-
Content-Type:
|
291
|
-
- application/json
|
292
|
-
response:
|
293
|
-
status:
|
294
|
-
code: 200
|
295
|
-
message: OK
|
296
|
-
headers:
|
297
|
-
Access-Control-Allow-Credentials:
|
298
|
-
- 'false'
|
299
|
-
Content-Type:
|
300
|
-
- application/json; charset=UTF-8
|
301
|
-
Date:
|
302
|
-
- Sat, 21 Feb 2015 23:53:00 GMT
|
303
|
-
Vary:
|
304
|
-
- Accept-Encoding
|
305
|
-
- Accept-Encoding
|
306
|
-
Content-Length:
|
307
|
-
- '42'
|
308
|
-
Connection:
|
309
|
-
- keep-alive
|
310
|
-
body:
|
311
|
-
encoding: UTF-8
|
312
|
-
string: '{"updated":[261954,240665],"discarded":[]}'
|
313
|
-
http_version:
|
314
|
-
recorded_at: Sat, 21 Feb 2015 23:53:00 GMT
|
315
|
-
recorded_with: VCR 2.4.0
|
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/content/api/v2/topics?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
|
-
Cache-Control:
|
18
|
-
- No-store
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Mon, 20 Oct 2014 02:53:54 GMT
|
23
|
-
P3p:
|
24
|
-
- 'P3P: policyref="http://www.hubspot.com/w3c/p3p.xml", CP="CURa ADMa DEVa TAIa
|
25
|
-
PSAa PSDa OUR IND DSP NON COR'
|
26
|
-
Server:
|
27
|
-
- gunicorn/0.17.2
|
28
|
-
Vary:
|
29
|
-
- Accept-Encoding
|
30
|
-
X-Hs-Mc-Reqs:
|
31
|
-
- Z2V0X21hbnk6MiwyO3NldDoyLDI7Z2V0OjIsMw==
|
32
|
-
Content-Length:
|
33
|
-
- '584'
|
34
|
-
Connection:
|
35
|
-
- keep-alive
|
36
|
-
body:
|
37
|
-
encoding: UTF-8
|
38
|
-
string: '{"total_count": 3, "objects": [{"created": 1381896200000, "deleted_at":
|
39
|
-
0, "description": "", "id": 349001328, "name": "api-docs", "portal_id": 62515,
|
40
|
-
"slug": "api-docs", "updated": 1381896200000}, {"created": 1389388053000,
|
41
|
-
"deleted_at": 0, "description": "", "id": 447332568, "name": "Test Topic 20140110160733",
|
42
|
-
"portal_id": 62515, "slug": "test-topic-20140110160733", "updated": 1389388053000},
|
43
|
-
{"created": 1389387669000, "deleted_at": 0, "description": "", "id": 450113517,
|
44
|
-
"name": "Test", "portal_id": 62515, "slug": "test", "updated": 1389387669000}],
|
45
|
-
"limit": 20, "offset": 0}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Mon, 20 Oct 2014 02:53:54 GMT
|
48
|
-
recorded_with: VCR 2.4.0
|
@@ -1,86 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/content/api/v2/topics?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
|
-
Cache-Control:
|
18
|
-
- No-store
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Mon, 20 Oct 2014 02:55:54 GMT
|
23
|
-
P3p:
|
24
|
-
- 'P3P: policyref="http://www.hubspot.com/w3c/p3p.xml", CP="CURa ADMa DEVa TAIa
|
25
|
-
PSAa PSDa OUR IND DSP NON COR'
|
26
|
-
Server:
|
27
|
-
- gunicorn/0.17.2
|
28
|
-
Vary:
|
29
|
-
- Accept-Encoding
|
30
|
-
X-Hs-Mc-Reqs:
|
31
|
-
- Z2V0X21hbnk6MSwyO2dldDoyLDQ=
|
32
|
-
Content-Length:
|
33
|
-
- '584'
|
34
|
-
Connection:
|
35
|
-
- keep-alive
|
36
|
-
body:
|
37
|
-
encoding: UTF-8
|
38
|
-
string: '{"total_count": 3, "objects": [{"created": 1381896200000, "deleted_at":
|
39
|
-
0, "description": "", "id": 349001328, "name": "api-docs", "portal_id": 62515,
|
40
|
-
"slug": "api-docs", "updated": 1381896200000}, {"created": 1389388053000,
|
41
|
-
"deleted_at": 0, "description": "", "id": 447332568, "name": "Test Topic 20140110160733",
|
42
|
-
"portal_id": 62515, "slug": "test-topic-20140110160733", "updated": 1389388053000},
|
43
|
-
{"created": 1389387669000, "deleted_at": 0, "description": "", "id": 450113517,
|
44
|
-
"name": "Test", "portal_id": 62515, "slug": "test", "updated": 1389387669000}],
|
45
|
-
"limit": 20, "offset": 0}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Mon, 20 Oct 2014 02:55:54 GMT
|
48
|
-
- request:
|
49
|
-
method: get
|
50
|
-
uri: https://api.hubapi.com/content/api/v2/topics/349001328?hapikey=demo
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: ''
|
54
|
-
headers: {}
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 200
|
58
|
-
message: OK
|
59
|
-
headers:
|
60
|
-
Access-Control-Allow-Credentials:
|
61
|
-
- 'false'
|
62
|
-
Cache-Control:
|
63
|
-
- No-store
|
64
|
-
Content-Type:
|
65
|
-
- application/json
|
66
|
-
Date:
|
67
|
-
- Mon, 20 Oct 2014 03:37:14 GMT
|
68
|
-
P3p:
|
69
|
-
- 'P3P: policyref="http://www.hubspot.com/w3c/p3p.xml", CP="CURa ADMa DEVa TAIa
|
70
|
-
PSAa PSDa OUR IND DSP NON COR'
|
71
|
-
Server:
|
72
|
-
- gunicorn/0.17.2
|
73
|
-
X-Hs-Mc-Reqs:
|
74
|
-
- Z2V0X21hbnk6MiwzO3NldDoxLDE7Z2V0OjIsMg==
|
75
|
-
Content-Length:
|
76
|
-
- '165'
|
77
|
-
Connection:
|
78
|
-
- keep-alive
|
79
|
-
body:
|
80
|
-
encoding: UTF-8
|
81
|
-
string: '{"created": 1381896200000, "deleted_at": 0, "description": "", "id":
|
82
|
-
349001328, "name": "api-docs", "portal_id": 62515, "slug": "api-docs", "updated":
|
83
|
-
1381896200000}'
|
84
|
-
http_version:
|
85
|
-
recorded_at: Mon, 20 Oct 2014 03:37:14 GMT
|
86
|
-
recorded_with: VCR 2.4.0
|