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,64 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: '{"properties":[{"property":"email","value":"newcontact1361564912@hsgem.com"}]}'
|
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
|
-
- text/plain; charset=utf-8
|
19
|
-
Date:
|
20
|
-
- Fri, 22 Feb 2013 20:28:34 GMT
|
21
|
-
Server:
|
22
|
-
- Apache-Coyote/1.1
|
23
|
-
Content-Length:
|
24
|
-
- '1084'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: '{"vid":154963,"portal-id":62515,"profile-token":"AO_T-mO_ghCK-Ia-VTb9_2r9z6sSvJu1gQkVT4Y0GmhKxIP-e3PyPRBHyhh4qeC-yu-5881gXoLArqPN2BvJu9MSJLXCSyJNZjyX0hkD2yvbnkrKBZtpXjS1XtQL2R8VinrL5AZAQ073","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mO_ghCK-Ia-VTb9_2r9z6sSvJu1gQkVT4Y0GmhKxIP-e3PyPRBHyhh4qeC-yu-5881gXoLArqPN2BvJu9MSJLXCSyJNZjyX0hkD2yvbnkrKBZtpXjS1XtQL2R8VinrL5AZAQ073/","properties":{"email":{"value":"newcontact1361564912@hsgem.com","versions":[{"value":"newcontact1361564912@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564913945,"selected":false}]},"createdate":{"value":"1361564913945","versions":[{"value":"1361564913945","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564913945,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":154963,"identities":[{"type":"EMAIL","value":"newcontact1361564912@hsgem.com","timestamp":1361564913945},{"type":"LEAD_GUID","value":"b8c6e48e-e5b3-4322-b192-27ec5629175e","timestamp":1361564913954}]}]}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Fri, 22 Feb 2013 20:28:34 GMT
|
32
|
-
- request:
|
33
|
-
method: post
|
34
|
-
uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"properties":[{"property":"email","value":"newcontact1424888102@hsgem.com"}]}'
|
38
|
-
headers:
|
39
|
-
Content-Type:
|
40
|
-
- application/json
|
41
|
-
response:
|
42
|
-
status:
|
43
|
-
code: 405
|
44
|
-
message: Method Not Allowed
|
45
|
-
headers:
|
46
|
-
Access-Control-Allow-Credentials:
|
47
|
-
- 'false'
|
48
|
-
Allow:
|
49
|
-
- HEAD,GET,OPTIONS
|
50
|
-
Date:
|
51
|
-
- Wed, 25 Feb 2015 18:15:03 GMT
|
52
|
-
Vary:
|
53
|
-
- Accept-Encoding
|
54
|
-
- Accept-Encoding
|
55
|
-
Content-Length:
|
56
|
-
- '0'
|
57
|
-
Connection:
|
58
|
-
- keep-alive
|
59
|
-
body:
|
60
|
-
encoding: UTF-8
|
61
|
-
string: ''
|
62
|
-
http_version:
|
63
|
-
recorded_at: Wed, 25 Feb 2015 18:15:02 GMT
|
64
|
-
recorded_with: VCR 2.4.0
|
@@ -1,62 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: '{"properties":[{"property":"email","value":"testingapis@hubspot.com"}]}'
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 409
|
13
|
-
message: Conflict
|
14
|
-
headers:
|
15
|
-
Content-Type:
|
16
|
-
- application/json;charset=UTF-8
|
17
|
-
Date:
|
18
|
-
- Fri, 22 Feb 2013 20:28:35 GMT
|
19
|
-
Server:
|
20
|
-
- Apache-Coyote/1.1
|
21
|
-
Content-Length:
|
22
|
-
- '380'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: '{"status":"error","message":"{\"msg\":\"Contact already existed\",\"error\":\"CONTACT_EXISTS\",\"property\":{\"vid\":82325,\"identities\":[{\"type\":\"EMAIL\",\"value\":\"testingapis@hubspot.com\",\"timestamp\":1345062449327},{\"type\":\"LEAD_GUID\",\"value\":\"c0da5c41-f289-4642-910c-9aa2b0fba245\",\"timestamp\":1345062449333}]}}","guid":"cd0e6f59-c8a3-4ae5-b897-3b3990ebda40"}'
|
28
|
-
http_version:
|
29
|
-
recorded_at: Fri, 22 Feb 2013 20:28:35 GMT
|
30
|
-
- request:
|
31
|
-
method: post
|
32
|
-
uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"properties":[{"property":"email","value":"testingapis@hubspot.com"}]}'
|
36
|
-
headers:
|
37
|
-
Content-Type:
|
38
|
-
- application/json
|
39
|
-
response:
|
40
|
-
status:
|
41
|
-
code: 405
|
42
|
-
message: Method Not Allowed
|
43
|
-
headers:
|
44
|
-
Access-Control-Allow-Credentials:
|
45
|
-
- 'false'
|
46
|
-
Allow:
|
47
|
-
- HEAD,GET,OPTIONS
|
48
|
-
Date:
|
49
|
-
- Wed, 25 Feb 2015 18:15:03 GMT
|
50
|
-
Vary:
|
51
|
-
- Accept-Encoding
|
52
|
-
- Accept-Encoding
|
53
|
-
Content-Length:
|
54
|
-
- '0'
|
55
|
-
Connection:
|
56
|
-
- keep-alive
|
57
|
-
body:
|
58
|
-
encoding: UTF-8
|
59
|
-
string: ''
|
60
|
-
http_version:
|
61
|
-
recorded_at: Wed, 25 Feb 2015 18:15:03 GMT
|
62
|
-
recorded_with: VCR 2.4.0
|
@@ -1,63 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: '{"properties":[{"property":"email","value":"not_an_email"}]}'
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 400
|
13
|
-
message: Bad Request
|
14
|
-
headers:
|
15
|
-
Content-Type:
|
16
|
-
- application/json;charset=UTF-8
|
17
|
-
Date:
|
18
|
-
- Fri, 22 Feb 2013 20:28:36 GMT
|
19
|
-
Server:
|
20
|
-
- Apache-Coyote/1.1
|
21
|
-
Content-Length:
|
22
|
-
- '177'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
body:
|
26
|
-
encoding: US-ASCII
|
27
|
-
string: '{"status":"error","message":"Invalid value for type in identity: value:
|
28
|
-
\"not_an_email\"\ntype: EMAIL\ntimestamp: 1361564916579\n","guid":"74dee415-f9fd-4525-83e6-436df7c2aa56"}'
|
29
|
-
http_version:
|
30
|
-
recorded_at: Fri, 22 Feb 2013 20:28:36 GMT
|
31
|
-
- request:
|
32
|
-
method: post
|
33
|
-
uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo
|
34
|
-
body:
|
35
|
-
encoding: UTF-8
|
36
|
-
string: '{"properties":[{"property":"email","value":"not_an_email"}]}'
|
37
|
-
headers:
|
38
|
-
Content-Type:
|
39
|
-
- application/json
|
40
|
-
response:
|
41
|
-
status:
|
42
|
-
code: 405
|
43
|
-
message: Method Not Allowed
|
44
|
-
headers:
|
45
|
-
Access-Control-Allow-Credentials:
|
46
|
-
- 'false'
|
47
|
-
Allow:
|
48
|
-
- HEAD,GET,OPTIONS
|
49
|
-
Date:
|
50
|
-
- Wed, 25 Feb 2015 18:15:04 GMT
|
51
|
-
Vary:
|
52
|
-
- Accept-Encoding
|
53
|
-
- Accept-Encoding
|
54
|
-
Content-Length:
|
55
|
-
- '0'
|
56
|
-
Connection:
|
57
|
-
- keep-alive
|
58
|
-
body:
|
59
|
-
encoding: UTF-8
|
60
|
-
string: ''
|
61
|
-
http_version:
|
62
|
-
recorded_at: Wed, 25 Feb 2015 18:15:03 GMT
|
63
|
-
recorded_with: VCR 2.4.0
|
@@ -1,64 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: '{"properties":[{"property":"firstname","value":"Hugh"},{"property":"lastname","value":"Jackman"},{"property":"email","value":"newcontact_x_1361564914@hsgem.com"}]}'
|
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
|
-
- text/plain; charset=utf-8
|
19
|
-
Date:
|
20
|
-
- Fri, 22 Feb 2013 20:28:35 GMT
|
21
|
-
Server:
|
22
|
-
- Apache-Coyote/1.1
|
23
|
-
Content-Length:
|
24
|
-
- '1416'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: '{"vid":154964,"portal-id":62515,"profile-token":"AO_T-mMaMO14Jys0CrLFvkD56Xc8f7PvvFmhsvSPDDdm6-6uF2wbsFHaXFthseHCDcYvwjiWsMGmF9JSy1cdRpd2-PHwsGHsvBwWTwTDSH7cfTId6uYx7xpng_5YxQM9KauZgI_NJMKL","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mMaMO14Jys0CrLFvkD56Xc8f7PvvFmhsvSPDDdm6-6uF2wbsFHaXFthseHCDcYvwjiWsMGmF9JSy1cdRpd2-PHwsGHsvBwWTwTDSH7cfTId6uYx7xpng_5YxQM9KauZgI_NJMKL/","properties":{"email":{"value":"newcontact_x_1361564914@hsgem.com","versions":[{"value":"newcontact_x_1361564914@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564915163,"selected":false}]},"createdate":{"value":"1361564915163","versions":[{"value":"1361564915163","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564915163,"selected":false}]},"lastname":{"value":"Jackman","versions":[{"value":"Jackman","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564915163,"selected":false}]},"firstname":{"value":"Hugh","versions":[{"value":"Hugh","source-type":"API","source-id":null,"source-label":null,"timestamp":1361564915163,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":154964,"identities":[{"type":"EMAIL","value":"newcontact_x_1361564914@hsgem.com","timestamp":1361564915163},{"type":"LEAD_GUID","value":"49034e6d-f3f4-4018-8b50-1baa22cdb514","timestamp":1361564915173}]}]}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Fri, 22 Feb 2013 20:28:35 GMT
|
32
|
-
- request:
|
33
|
-
method: post
|
34
|
-
uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"properties":[{"property":"firstname","value":"Hugh"},{"property":"lastname","value":"Jackman"},{"property":"email","value":"newcontact_x_1424888102@hsgem.com"}]}'
|
38
|
-
headers:
|
39
|
-
Content-Type:
|
40
|
-
- application/json
|
41
|
-
response:
|
42
|
-
status:
|
43
|
-
code: 405
|
44
|
-
message: Method Not Allowed
|
45
|
-
headers:
|
46
|
-
Access-Control-Allow-Credentials:
|
47
|
-
- 'false'
|
48
|
-
Allow:
|
49
|
-
- HEAD,GET,OPTIONS
|
50
|
-
Date:
|
51
|
-
- Wed, 25 Feb 2015 18:15:03 GMT
|
52
|
-
Vary:
|
53
|
-
- Accept-Encoding
|
54
|
-
- Accept-Encoding
|
55
|
-
Content-Length:
|
56
|
-
- '0'
|
57
|
-
Connection:
|
58
|
-
- keep-alive
|
59
|
-
body:
|
60
|
-
encoding: UTF-8
|
61
|
-
string: ''
|
62
|
-
http_version:
|
63
|
-
recorded_at: Wed, 25 Feb 2015 18:15:02 GMT
|
64
|
-
recorded_with: VCR 2.4.0
|
@@ -1,131 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact?hapikey=demo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: '{"properties":[{"property":"email","value":"newcontact_y_1362339049@hsgem.com"}]}'
|
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
|
-
- text/plain; charset=utf-8
|
19
|
-
Date:
|
20
|
-
- Sun, 03 Mar 2013 19:30:50 GMT
|
21
|
-
Server:
|
22
|
-
- Apache-Coyote/1.1
|
23
|
-
Content-Length:
|
24
|
-
- '1093'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: '{"vid":163808,"portal-id":62515,"profile-token":"AO_T-mMji2Iv1oSx0LuXtcLlejNz0naS-l00tAfVhctds-q3zsMUlISjDLHGNObWRvyaRtQtErwRE8c5KRae9_tRCUhKqLXFCnbQsXpzZndlsY0j5uTCQWIeYGG9i1REd183fSyDgspc","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mMji2Iv1oSx0LuXtcLlejNz0naS-l00tAfVhctds-q3zsMUlISjDLHGNObWRvyaRtQtErwRE8c5KRae9_tRCUhKqLXFCnbQsXpzZndlsY0j5uTCQWIeYGG9i1REd183fSyDgspc/","properties":{"email":{"value":"newcontact_y_1362339049@hsgem.com","versions":[{"value":"newcontact_y_1362339049@hsgem.com","source-type":"API","source-id":null,"source-label":null,"timestamp":1362339050201,"selected":false}]},"createdate":{"value":"1362339050201","versions":[{"value":"1362339050201","source-type":"API","source-id":null,"source-label":null,"timestamp":1362339050201,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":163808,"identities":[{"type":"EMAIL","value":"newcontact_y_1362339049@hsgem.com","timestamp":1362339050201},{"type":"LEAD_GUID","value":"cbad3425-1495-4680-b267-162b11bc240f","timestamp":1362339050235}]}]}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Sun, 03 Mar 2013 19:30:50 GMT
|
32
|
-
- request:
|
33
|
-
method: delete
|
34
|
-
uri: https://api.hubapi.com/contacts/v1/contact/vid/163808?hapikey=demo
|
35
|
-
body:
|
36
|
-
encoding: US-ASCII
|
37
|
-
string: ''
|
38
|
-
headers: {}
|
39
|
-
response:
|
40
|
-
status:
|
41
|
-
code: 200
|
42
|
-
message: OK
|
43
|
-
headers:
|
44
|
-
Access-Control-Allow-Credentials:
|
45
|
-
- 'false'
|
46
|
-
Content-Type:
|
47
|
-
- text/plain; charset=utf-8
|
48
|
-
Date:
|
49
|
-
- Sun, 03 Mar 2013 19:30:51 GMT
|
50
|
-
Server:
|
51
|
-
- Apache-Coyote/1.1
|
52
|
-
Content-Length:
|
53
|
-
- '29'
|
54
|
-
Connection:
|
55
|
-
- keep-alive
|
56
|
-
body:
|
57
|
-
encoding: US-ASCII
|
58
|
-
string: '{"vid":163808,"deleted":true}'
|
59
|
-
http_version:
|
60
|
-
recorded_at: Sun, 03 Mar 2013 19:30:51 GMT
|
61
|
-
- request:
|
62
|
-
method: delete
|
63
|
-
uri: https://api.hubapi.com/contacts/v1/contact/vid/invalid?hapikey=demo
|
64
|
-
body:
|
65
|
-
encoding: US-ASCII
|
66
|
-
string: ''
|
67
|
-
headers: {}
|
68
|
-
response:
|
69
|
-
status:
|
70
|
-
code: 404
|
71
|
-
message: Not Found
|
72
|
-
headers:
|
73
|
-
Content-Type:
|
74
|
-
- text/html;charset=utf-8
|
75
|
-
Date:
|
76
|
-
- Sun, 03 Mar 2013 19:30:51 GMT
|
77
|
-
Server:
|
78
|
-
- Apache-Coyote/1.1
|
79
|
-
Content-Length:
|
80
|
-
- '979'
|
81
|
-
Connection:
|
82
|
-
- keep-alive
|
83
|
-
body:
|
84
|
-
encoding: US-ASCII
|
85
|
-
string: '<html><head><title>Apache Tomcat/6.0.30 - Error report</title><style><!--H1
|
86
|
-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
|
87
|
-
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
|
88
|
-
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
|
89
|
-
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
|
90
|
-
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
|
91
|
-
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
|
92
|
-
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
|
93
|
-
Status 404 - Not Found</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
|
94
|
-
report</p><p><b>message</b> <u>Not Found</u></p><p><b>description</b> <u>The
|
95
|
-
requested resource (Not Found) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
|
96
|
-
Tomcat/6.0.30</h3></body></html>'
|
97
|
-
http_version:
|
98
|
-
recorded_at: Sun, 03 Mar 2013 19:30:51 GMT
|
99
|
-
- request:
|
100
|
-
method: post
|
101
|
-
uri: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo
|
102
|
-
body:
|
103
|
-
encoding: UTF-8
|
104
|
-
string: '{"properties":[{"property":"email","value":"newcontact_y_1424888103@hsgem.com"}]}'
|
105
|
-
headers:
|
106
|
-
Content-Type:
|
107
|
-
- application/json
|
108
|
-
response:
|
109
|
-
status:
|
110
|
-
code: 405
|
111
|
-
message: Method Not Allowed
|
112
|
-
headers:
|
113
|
-
Access-Control-Allow-Credentials:
|
114
|
-
- 'false'
|
115
|
-
Allow:
|
116
|
-
- HEAD,GET,OPTIONS
|
117
|
-
Date:
|
118
|
-
- Wed, 25 Feb 2015 18:15:04 GMT
|
119
|
-
Vary:
|
120
|
-
- Accept-Encoding
|
121
|
-
- Accept-Encoding
|
122
|
-
Content-Length:
|
123
|
-
- '0'
|
124
|
-
Connection:
|
125
|
-
- keep-alive
|
126
|
-
body:
|
127
|
-
encoding: UTF-8
|
128
|
-
string: ''
|
129
|
-
http_version:
|
130
|
-
recorded_at: Wed, 25 Feb 2015 18:15:03 GMT
|
131
|
-
recorded_with: VCR 2.4.0
|
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact/email/testingapis@hubspot.com/profile?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
|
-
- Fri, 22 Feb 2013 20:31:02 GMT
|
21
|
-
Server:
|
22
|
-
- Apache-Coyote/1.1
|
23
|
-
Content-Length:
|
24
|
-
- '5094'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: ! '{"vid":82325,"canonical-vid":82325,"portal-id":62515,"profile-token":"AO_T-mNv5DxWksowkR_cUZwe4J5-pxmNlzGQ4bJOas20MGNrJtrQWj7vtreBvekW74KmTCsbeEx0Kwy3YfptnFT6fDiQ-3kEnQz44wTQsEvmusYBjUYqvfv0twCciwlZ1vCwerCEuRUo","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNv5DxWksowkR_cUZwe4J5-pxmNlzGQ4bJOas20MGNrJtrQWj7vtreBvekW74KmTCsbeEx0Kwy3YfptnFT6fDiQ-3kEnQz44wTQsEvmusYBjUYqvfv0twCciwlZ1vCwerCEuRUo/","properties":{"usertoken":{"value":"1234567890"},"hs_analytics_num_visits":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_referrer":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_linkedin_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_url":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_last_engagement":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_num_broadcast_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"hs_social_facebook_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"createdate":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"API","source-id":null,"source-label":null,"timestamp":1345062449002,"selected":false}]},"lastname":{"value":"Eastwood","versions":[{"value":"Eastwood","source-type":"API","source-id":null,"source-label":null,"timestamp":1361147932002,"selected":false},{"value":"Cunningham","source-type":"API","source-id":null,"source-label":null,"timestamp":1361146313002,"selected":false}]},"hs_social_twitter_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"phone":{"value":"555-555-5432"},"firstname":{"value":"Clint","versions":[{"value":"Clint","source-type":"API","source-id":null,"source-label":null,"timestamp":1361147932002,"selected":false},{"value":"Steve","source-type":"API","source-id":null,"source-label":null,"timestamp":1361146313002,"selected":false}]},"hs_analytics_first_url":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source":{"value":"OFFLINE","versions":[{"value":"OFFLINE","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_first_referrer":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_num_event_completions":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"hs_social_google_plus_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"email":{"value":"testingapis@hubspot.com","versions":[{"value":"testingapis@hubspot.com","source-type":"CONTACTS_WEB","source-id":"dadams@hubspot.com","source-label":null,"timestamp":1345062449008,"selected":false}]},"hs_analytics_last_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_num_page_views":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_first_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source_data_2":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source_data_1":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_visit_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":82325,"identities":[{"type":"EMAIL","value":"testingapis@hubspot.com","timestamp":1345062449327},{"type":"LEAD_GUID","value":"c0da5c41-f289-4642-910c-9aa2b0fba245","timestamp":1345062449333}]}]}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Fri, 22 Feb 2013 20:31:02 GMT
|
32
|
-
recorded_with: VCR 2.4.0
|
@@ -1,59 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/contacts/v1/contact/email/testingapis@hubspot.com/profile?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
|
-
- Fri, 22 Feb 2013 20:29:42 GMT
|
21
|
-
Server:
|
22
|
-
- Apache-Coyote/1.1
|
23
|
-
Content-Length:
|
24
|
-
- '5094'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: US-ASCII
|
29
|
-
string: ! '{"vid":82325,"canonical-vid":82325,"portal-id":62515,"profile-token":"AO_T-mNUsbKKM-tvm_q0O7Ql1xQiWoedwmogZpyxE-rxo0onAmthqACf0UP7bZSHxumyp1tZAdD-Gx3_aLPT2M8W9zCHxEl-Mn0tQezqgf_Wtz4TeT89Zue-LLJ2bug1MkR2ALQyrk9L","profile-url":"https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mNUsbKKM-tvm_q0O7Ql1xQiWoedwmogZpyxE-rxo0onAmthqACf0UP7bZSHxumyp1tZAdD-Gx3_aLPT2M8W9zCHxEl-Mn0tQezqgf_Wtz4TeT89Zue-LLJ2bug1MkR2ALQyrk9L/","properties":{"hs_analytics_num_visits":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_referrer":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_linkedin_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_url":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_last_engagement":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_social_num_broadcast_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"hs_social_facebook_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"createdate":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"API","source-id":null,"source-label":null,"timestamp":1345062449002,"selected":false}]},"lastname":{"value":"Eastwood","versions":[{"value":"Eastwood","source-type":"API","source-id":null,"source-label":null,"timestamp":1361147932002,"selected":false},{"value":"Cunningham","source-type":"API","source-id":null,"source-label":null,"timestamp":1361146313002,"selected":false}]},"hs_social_twitter_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"firstname":{"value":"Clint","versions":[{"value":"Clint","source-type":"API","source-id":null,"source-label":null,"timestamp":1361147932002,"selected":false},{"value":"Steve","source-type":"API","source-id":null,"source-label":null,"timestamp":1361146313002,"selected":false}]},"hs_analytics_first_url":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source":{"value":"OFFLINE","versions":[{"value":"OFFLINE","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_first_referrer":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_num_event_completions":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"hs_social_google_plus_clicks":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]},"email":{"value":"testingapis@hubspot.com","versions":[{"value":"testingapis@hubspot.com","source-type":"CONTACTS_WEB","source-id":"dadams@hubspot.com","source-label":null,"timestamp":1345062449008,"selected":false}]},"hs_analytics_last_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_num_page_views":{"value":"0","versions":[{"value":"0","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_first_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source_data_2":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_source_data_1":{"value":"","versions":[{"value":"","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1345067864004,"selected":false}]},"hs_analytics_last_visit_timestamp":{"value":"1345062449327","versions":[{"value":"1345062449327","source-type":"ANALYTICS","source-id":null,"source-label":null,"timestamp":1348916431004,"selected":false}]}},"form-submissions":[],"list-memberships":[],"identity-profiles":[{"vid":82325,"identities":[{"type":"EMAIL","value":"testingapis@hubspot.com","timestamp":1345062449327},{"type":"LEAD_GUID","value":"c0da5c41-f289-4642-910c-9aa2b0fba245","timestamp":1345062449333}]}]}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Fri, 22 Feb 2013 20:29:42 GMT
|
32
|
-
- request:
|
33
|
-
method: get
|
34
|
-
uri: https://api.hubapi.com/contacts/v1/contact/email/notacontact@test.com/profile?hapikey=demo
|
35
|
-
body:
|
36
|
-
encoding: US-ASCII
|
37
|
-
string: ''
|
38
|
-
headers: {}
|
39
|
-
response:
|
40
|
-
status:
|
41
|
-
code: 404
|
42
|
-
message: Not Found
|
43
|
-
headers:
|
44
|
-
Content-Type:
|
45
|
-
- application/json;charset=UTF-8
|
46
|
-
Date:
|
47
|
-
- Fri, 22 Feb 2013 20:29:42 GMT
|
48
|
-
Server:
|
49
|
-
- Apache-Coyote/1.1
|
50
|
-
Content-Length:
|
51
|
-
- '95'
|
52
|
-
Connection:
|
53
|
-
- keep-alive
|
54
|
-
body:
|
55
|
-
encoding: US-ASCII
|
56
|
-
string: ! '{"status":"error","message":"resource not found","guid":"5aafc293-6bc9-47fb-b6a4-512ffff24e88"}'
|
57
|
-
http_version:
|
58
|
-
recorded_at: Fri, 22 Feb 2013 20:29:42 GMT
|
59
|
-
recorded_with: VCR 2.4.0
|