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,166 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.hubapi.com/deals/v1/deal/3?hapikey=demo&portalId=62515
|
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: ! '{
|
30
|
-
"associations": {
|
31
|
-
"associatedCompanyIds": [],
|
32
|
-
"associatedDealIds": [],
|
33
|
-
"associatedVids": [
|
34
|
-
1
|
35
|
-
]
|
36
|
-
},
|
37
|
-
"dealId": 3,
|
38
|
-
"isDeleted": false,
|
39
|
-
"portalId": 62515,
|
40
|
-
"properties": {
|
41
|
-
"createdate": {
|
42
|
-
"source": null,
|
43
|
-
"sourceId": null,
|
44
|
-
"timestamp": 1395436454893,
|
45
|
-
"value": "1395436449463",
|
46
|
-
"versions": [
|
47
|
-
{
|
48
|
-
"name": "createdate",
|
49
|
-
"sourceVid": [],
|
50
|
-
"timestamp": 1395436454893,
|
51
|
-
"value": "1395436449463"
|
52
|
-
}
|
53
|
-
]
|
54
|
-
},
|
55
|
-
"dealname": {
|
56
|
-
"source": "API",
|
57
|
-
"sourceId": null,
|
58
|
-
"timestamp": 1395783871770,
|
59
|
-
"value": "My Deal!",
|
60
|
-
"versions": [
|
61
|
-
{
|
62
|
-
"name": "dealname",
|
63
|
-
"source": "API",
|
64
|
-
"sourceVid": [],
|
65
|
-
"timestamp": 1395783871770,
|
66
|
-
"value": "My Deal!"
|
67
|
-
}
|
68
|
-
]
|
69
|
-
},
|
70
|
-
"dealstage": {
|
71
|
-
"source": "API",
|
72
|
-
"sourceId": "userId=100263",
|
73
|
-
"timestamp": 1397487812494,
|
74
|
-
"value": "closedwon",
|
75
|
-
"versions": [
|
76
|
-
{
|
77
|
-
"name": "dealstage",
|
78
|
-
"source": "API",
|
79
|
-
"sourceId": "userId=100263",
|
80
|
-
"sourceVid": [],
|
81
|
-
"timestamp": 1397487812494,
|
82
|
-
"value": "closedwon"
|
83
|
-
}
|
84
|
-
]
|
85
|
-
},
|
86
|
-
"hubspot_owner_assigneddate": {
|
87
|
-
"source": "API",
|
88
|
-
"sourceId": "PopulateHubspotOwnerAssignedDate",
|
89
|
-
"timestamp": 1404916626079,
|
90
|
-
"value": "1397487780732",
|
91
|
-
"versions": [
|
92
|
-
{
|
93
|
-
"name": "hubspot_owner_assigneddate",
|
94
|
-
"source": "API",
|
95
|
-
"sourceId": "PopulateHubspotOwnerAssignedDate",
|
96
|
-
"sourceVid": [],
|
97
|
-
"timestamp": 1404916626079,
|
98
|
-
"value": "1397487780732"
|
99
|
-
}
|
100
|
-
]
|
101
|
-
},
|
102
|
-
"hubspot_owner_id": {
|
103
|
-
"source": "API",
|
104
|
-
"sourceId": "userId=100263",
|
105
|
-
"timestamp": 1397487780732,
|
106
|
-
"value": "24",
|
107
|
-
"versions": [
|
108
|
-
{
|
109
|
-
"name": "hubspot_owner_id",
|
110
|
-
"source": "API",
|
111
|
-
"sourceId": "userId=100263",
|
112
|
-
"sourceVid": [],
|
113
|
-
"timestamp": 1397487780732,
|
114
|
-
"value": "24"
|
115
|
-
}
|
116
|
-
]
|
117
|
-
},
|
118
|
-
"notes_last_contacted": {
|
119
|
-
"source": "API",
|
120
|
-
"sourceId": null,
|
121
|
-
"timestamp": 1408397443789,
|
122
|
-
"value": "1408397443247",
|
123
|
-
"versions": [
|
124
|
-
{
|
125
|
-
"name": "notes_last_contacted",
|
126
|
-
"source": "API",
|
127
|
-
"sourceVid": [],
|
128
|
-
"timestamp": 1408397443789,
|
129
|
-
"value": "1408397443247"
|
130
|
-
}
|
131
|
-
]
|
132
|
-
},
|
133
|
-
"notes_last_updated": {
|
134
|
-
"source": "API",
|
135
|
-
"sourceId": null,
|
136
|
-
"timestamp": 1408397443789,
|
137
|
-
"value": "1408397443247",
|
138
|
-
"versions": [
|
139
|
-
{
|
140
|
-
"name": "notes_last_updated",
|
141
|
-
"source": "API",
|
142
|
-
"sourceVid": [],
|
143
|
-
"timestamp": 1408397443789,
|
144
|
-
"value": "1408397443247"
|
145
|
-
}
|
146
|
-
]
|
147
|
-
},
|
148
|
-
"num_associated_contacts": {
|
149
|
-
"source": "CALCULATED",
|
150
|
-
"sourceId": null,
|
151
|
-
"timestamp": 0,
|
152
|
-
"value": "1",
|
153
|
-
"versions": [
|
154
|
-
{
|
155
|
-
"name": "num_associated_contacts",
|
156
|
-
"source": "CALCULATED",
|
157
|
-
"sourceVid": [],
|
158
|
-
"value": "1"
|
159
|
-
}
|
160
|
-
]
|
161
|
-
}
|
162
|
-
}
|
163
|
-
}'
|
164
|
-
http_version:
|
165
|
-
recorded_at: Fri, 22 Feb 2013 20:31:02 GMT
|
166
|
-
recorded_with: VCR 2.4.0
|
@@ -1,115 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/deals/v1/deal?hapikey=demo&portalId=62515
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"portalId":62515,"associations":{"associatedCompanyIds":[8954037],"associatedVids":[27136]},"properties":[{"name":"amount","value":30}]}'
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message: OK
|
16
|
-
headers:
|
17
|
-
Access-Control-Allow-Credentials:
|
18
|
-
- 'false'
|
19
|
-
Content-Type:
|
20
|
-
- application/json; charset=UTF-8
|
21
|
-
Date:
|
22
|
-
- Sat, 27 Dec 2014 16:36:47 GMT
|
23
|
-
Content-Length:
|
24
|
-
- '743'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: UTF-8
|
29
|
-
string: '{"portalId":62515,"dealId":1146647,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1419698207371,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1419698207371,"source":"API","sourceVid":[]}]},"hs_createdate":{"value":"1419698207374","timestamp":1419698207374,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1419698207374","timestamp":1419698207374,"sourceVid":[]}]},"createdate":{"value":"1419698207374","timestamp":1419698207374,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1419698207374","timestamp":1419698207374,"sourceVid":[]}]}}}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Sat, 27 Dec 2014 16:36:47 GMT
|
32
|
-
- request:
|
33
|
-
method: get
|
34
|
-
uri: https://api.hubapi.com/deals/v1/deal/1146647?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
|
-
- application/json; charset=UTF-8
|
48
|
-
Date:
|
49
|
-
- Sat, 27 Dec 2014 16:36:48 GMT
|
50
|
-
Content-Length:
|
51
|
-
- '932'
|
52
|
-
Connection:
|
53
|
-
- keep-alive
|
54
|
-
body:
|
55
|
-
encoding: UTF-8
|
56
|
-
string: '{"portalId":62515,"dealId":1146647,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1419698207401,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1419698207401,"source":"API","sourceVid":[]}]},"num_associated_contacts":{"value":"1","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"1","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1419698207374","timestamp":1419698207401,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1419698207374","timestamp":1419698207401,"sourceVid":[]}]},"createdate":{"value":"1419698207374","timestamp":1419698207401,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1419698207374","timestamp":1419698207401,"sourceVid":[]}]}}}'
|
57
|
-
http_version:
|
58
|
-
recorded_at: Sat, 27 Dec 2014 16:36:48 GMT
|
59
|
-
- request:
|
60
|
-
method: post
|
61
|
-
uri: https://api.hubapi.com/deals/v1/deal?hapikey=demo
|
62
|
-
body:
|
63
|
-
encoding: UTF-8
|
64
|
-
string: '{"portalId":62515,"associations":{"associatedCompanyIds":[8954037],"associatedVids":[27136]},"properties":[{"name":"amount","value":30}]}'
|
65
|
-
headers:
|
66
|
-
Content-Type:
|
67
|
-
- application/json
|
68
|
-
response:
|
69
|
-
status:
|
70
|
-
code: 200
|
71
|
-
message: OK
|
72
|
-
headers:
|
73
|
-
Access-Control-Allow-Credentials:
|
74
|
-
- 'false'
|
75
|
-
Content-Type:
|
76
|
-
- application/json; charset=UTF-8
|
77
|
-
Date:
|
78
|
-
- Sun, 22 Feb 2015 16:16:53 GMT
|
79
|
-
Content-Length:
|
80
|
-
- '986'
|
81
|
-
Connection:
|
82
|
-
- keep-alive
|
83
|
-
body:
|
84
|
-
encoding: UTF-8
|
85
|
-
string: '{"portalId":62515,"dealId":2153362,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1424621813405,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1424621813405,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1424621813411","timestamp":1424621813411,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1424621813411","timestamp":1424621813411,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1424621813411","timestamp":1424621813411,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1424621813411","timestamp":1424621813411,"sourceVid":[]}]},"createdate":{"value":"1424621813411","timestamp":1424621813411,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1424621813411","timestamp":1424621813411,"sourceVid":[]}]}}}'
|
86
|
-
http_version:
|
87
|
-
recorded_at: Sun, 22 Feb 2015 16:16:53 GMT
|
88
|
-
- request:
|
89
|
-
method: get
|
90
|
-
uri: https://api.hubapi.com/deals/v1/deal/2153362?hapikey=demo
|
91
|
-
body:
|
92
|
-
encoding: US-ASCII
|
93
|
-
string: ''
|
94
|
-
headers: {}
|
95
|
-
response:
|
96
|
-
status:
|
97
|
-
code: 200
|
98
|
-
message: OK
|
99
|
-
headers:
|
100
|
-
Access-Control-Allow-Credentials:
|
101
|
-
- 'false'
|
102
|
-
Content-Type:
|
103
|
-
- application/json; charset=UTF-8
|
104
|
-
Date:
|
105
|
-
- Sun, 22 Feb 2015 16:16:53 GMT
|
106
|
-
Content-Length:
|
107
|
-
- '1175'
|
108
|
-
Connection:
|
109
|
-
- keep-alive
|
110
|
-
body:
|
111
|
-
encoding: UTF-8
|
112
|
-
string: '{"portalId":62515,"dealId":2153362,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1424621813414,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1424621813414,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1424621813411","timestamp":1424621813414,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1424621813411","timestamp":1424621813414,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"1","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"1","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1424621813411","timestamp":1424621813414,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1424621813411","timestamp":1424621813414,"sourceVid":[]}]},"createdate":{"value":"1424621813411","timestamp":1424621813414,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1424621813411","timestamp":1424621813414,"sourceVid":[]}]}}}'
|
113
|
-
http_version:
|
114
|
-
recorded_at: Sun, 22 Feb 2015 16:16:53 GMT
|
115
|
-
recorded_with: VCR 2.4.0
|
@@ -1,221 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.hubapi.com/deals/v1/deal?hapikey=demo&portalId=62515
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"portalId":62515,"associations":{"associatedCompanyIds":[8954037],"associatedVids":[27136]},"properties":[{"name":"amount","value":30}]}'
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message: OK
|
16
|
-
headers:
|
17
|
-
Access-Control-Allow-Credentials:
|
18
|
-
- 'false'
|
19
|
-
Content-Type:
|
20
|
-
- application/json; charset=UTF-8
|
21
|
-
Date:
|
22
|
-
- Fri, 09 Jan 2015 19:34:49 GMT
|
23
|
-
Content-Length:
|
24
|
-
- '986'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
body:
|
28
|
-
encoding: UTF-8
|
29
|
-
string: '{"portalId":62515,"dealId":1418749,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1420832089249,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1420832089249,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1420832089253","timestamp":1420832089253,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1420832089253","timestamp":1420832089253,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1420832089253","timestamp":1420832089253,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1420832089253","timestamp":1420832089253,"sourceVid":[]}]},"createdate":{"value":"1420832089253","timestamp":1420832089253,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1420832089253","timestamp":1420832089253,"sourceVid":[]}]}}}'
|
30
|
-
http_version:
|
31
|
-
recorded_at: Fri, 09 Jan 2015 19:34:49 GMT
|
32
|
-
- request:
|
33
|
-
method: get
|
34
|
-
uri: https://api.hubapi.com/deals/v1/deal/1418749?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
|
-
- application/json; charset=UTF-8
|
48
|
-
Date:
|
49
|
-
- Fri, 09 Jan 2015 19:34:49 GMT
|
50
|
-
Content-Length:
|
51
|
-
- '1175'
|
52
|
-
Connection:
|
53
|
-
- keep-alive
|
54
|
-
body:
|
55
|
-
encoding: UTF-8
|
56
|
-
string: '{"portalId":62515,"dealId":1418749,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1420832089260,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1420832089260,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1420832089253","timestamp":1420832089260,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1420832089253","timestamp":1420832089260,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"1","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"1","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1420832089253","timestamp":1420832089260,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1420832089253","timestamp":1420832089260,"sourceVid":[]}]},"createdate":{"value":"1420832089253","timestamp":1420832089260,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1420832089253","timestamp":1420832089260,"sourceVid":[]}]}}}'
|
57
|
-
http_version:
|
58
|
-
recorded_at: Fri, 09 Jan 2015 19:34:49 GMT
|
59
|
-
- request:
|
60
|
-
method: delete
|
61
|
-
uri: https://api.hubapi.com/deals/v1/deal/1418749?hapikey=demo
|
62
|
-
body:
|
63
|
-
encoding: US-ASCII
|
64
|
-
string: ''
|
65
|
-
headers: {}
|
66
|
-
response:
|
67
|
-
status:
|
68
|
-
code: 204
|
69
|
-
message: No Content
|
70
|
-
headers:
|
71
|
-
Access-Control-Allow-Credentials:
|
72
|
-
- 'false'
|
73
|
-
Content-Type:
|
74
|
-
- application/json; charset=UTF-8
|
75
|
-
Date:
|
76
|
-
- Fri, 09 Jan 2015 19:37:37 GMT
|
77
|
-
Connection:
|
78
|
-
- keep-alive
|
79
|
-
body:
|
80
|
-
encoding: UTF-8
|
81
|
-
string: ''
|
82
|
-
http_version:
|
83
|
-
recorded_at: Fri, 09 Jan 2015 19:37:37 GMT
|
84
|
-
- request:
|
85
|
-
method: get
|
86
|
-
uri: https://api.hubapi.com/deals/v1/deal/1418749?hapikey=demo
|
87
|
-
body:
|
88
|
-
encoding: US-ASCII
|
89
|
-
string: ''
|
90
|
-
headers: {}
|
91
|
-
response:
|
92
|
-
status:
|
93
|
-
code: 404
|
94
|
-
message: Not Found
|
95
|
-
headers:
|
96
|
-
Access-Control-Allow-Credentials:
|
97
|
-
- 'false'
|
98
|
-
Content-Type:
|
99
|
-
- application/json; charset=UTF-8
|
100
|
-
Date:
|
101
|
-
- Fri, 09 Jan 2015 19:39:20 GMT
|
102
|
-
Content-Length:
|
103
|
-
- '101'
|
104
|
-
Connection:
|
105
|
-
- keep-alive
|
106
|
-
body:
|
107
|
-
encoding: UTF-8
|
108
|
-
string: '{"status":"error","message":"Deal does not exist","requestId":"31456253-ec6a-49a6-a170-6721fc030277"}'
|
109
|
-
http_version:
|
110
|
-
recorded_at: Fri, 09 Jan 2015 19:39:20 GMT
|
111
|
-
- request:
|
112
|
-
method: post
|
113
|
-
uri: https://api.hubapi.com/deals/v1/deal?hapikey=demo
|
114
|
-
body:
|
115
|
-
encoding: UTF-8
|
116
|
-
string: '{"portalId":62515,"associations":{"associatedCompanyIds":[8954037],"associatedVids":[27136]},"properties":[{"name":"amount","value":30}]}'
|
117
|
-
headers:
|
118
|
-
Content-Type:
|
119
|
-
- application/json
|
120
|
-
response:
|
121
|
-
status:
|
122
|
-
code: 200
|
123
|
-
message: OK
|
124
|
-
headers:
|
125
|
-
Access-Control-Allow-Credentials:
|
126
|
-
- 'false'
|
127
|
-
Content-Type:
|
128
|
-
- application/json; charset=UTF-8
|
129
|
-
Date:
|
130
|
-
- Sun, 22 Feb 2015 16:16:53 GMT
|
131
|
-
Content-Length:
|
132
|
-
- '986'
|
133
|
-
Connection:
|
134
|
-
- keep-alive
|
135
|
-
body:
|
136
|
-
encoding: UTF-8
|
137
|
-
string: '{"portalId":62515,"dealId":2153873,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1424621813768,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1424621813768,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1424621813771","timestamp":1424621813771,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1424621813771","timestamp":1424621813771,"source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1424621813771","timestamp":1424621813771,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1424621813771","timestamp":1424621813771,"sourceVid":[]}]},"createdate":{"value":"1424621813771","timestamp":1424621813771,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1424621813771","timestamp":1424621813771,"sourceVid":[]}]}}}'
|
138
|
-
http_version:
|
139
|
-
recorded_at: Sun, 22 Feb 2015 16:16:53 GMT
|
140
|
-
- request:
|
141
|
-
method: get
|
142
|
-
uri: https://api.hubapi.com/deals/v1/deal/2153873?hapikey=demo
|
143
|
-
body:
|
144
|
-
encoding: US-ASCII
|
145
|
-
string: ''
|
146
|
-
headers: {}
|
147
|
-
response:
|
148
|
-
status:
|
149
|
-
code: 200
|
150
|
-
message: OK
|
151
|
-
headers:
|
152
|
-
Access-Control-Allow-Credentials:
|
153
|
-
- 'false'
|
154
|
-
Content-Type:
|
155
|
-
- application/json; charset=UTF-8
|
156
|
-
Date:
|
157
|
-
- Sun, 22 Feb 2015 16:16:53 GMT
|
158
|
-
Content-Length:
|
159
|
-
- '1175'
|
160
|
-
Connection:
|
161
|
-
- keep-alive
|
162
|
-
body:
|
163
|
-
encoding: UTF-8
|
164
|
-
string: '{"portalId":62515,"dealId":2153873,"isDeleted":false,"associations":{"associatedVids":[27136],"associatedCompanyIds":[8954037],"associatedDealIds":[]},"properties":{"amount":{"value":"30","timestamp":1424621813780,"source":"API","sourceId":null,"versions":[{"name":"amount","value":"30","timestamp":1424621813780,"source":"API","sourceVid":[]}]},"hs_lastmodifieddate":{"value":"1424621813771","timestamp":1424621813780,"source":"CALCULATED","sourceId":null,"versions":[{"name":"hs_lastmodifieddate","value":"1424621813771","timestamp":1424621813780,"source":"CALCULATED","sourceVid":[]}]},"num_associated_contacts":{"value":"1","timestamp":0,"source":"CALCULATED","sourceId":null,"versions":[{"name":"num_associated_contacts","value":"1","source":"CALCULATED","sourceVid":[]}]},"hs_createdate":{"value":"1424621813771","timestamp":1424621813780,"source":null,"sourceId":null,"versions":[{"name":"hs_createdate","value":"1424621813771","timestamp":1424621813780,"sourceVid":[]}]},"createdate":{"value":"1424621813771","timestamp":1424621813780,"source":null,"sourceId":null,"versions":[{"name":"createdate","value":"1424621813771","timestamp":1424621813780,"sourceVid":[]}]}}}'
|
165
|
-
http_version:
|
166
|
-
recorded_at: Sun, 22 Feb 2015 16:16:53 GMT
|
167
|
-
- request:
|
168
|
-
method: delete
|
169
|
-
uri: https://api.hubapi.com/deals/v1/deal/2153873?hapikey=demo
|
170
|
-
body:
|
171
|
-
encoding: US-ASCII
|
172
|
-
string: ''
|
173
|
-
headers: {}
|
174
|
-
response:
|
175
|
-
status:
|
176
|
-
code: 204
|
177
|
-
message: No Content
|
178
|
-
headers:
|
179
|
-
Access-Control-Allow-Credentials:
|
180
|
-
- 'false'
|
181
|
-
Content-Type:
|
182
|
-
- application/json; charset=UTF-8
|
183
|
-
Date:
|
184
|
-
- Sun, 22 Feb 2015 16:20:04 GMT
|
185
|
-
Connection:
|
186
|
-
- keep-alive
|
187
|
-
body:
|
188
|
-
encoding: UTF-8
|
189
|
-
string: ''
|
190
|
-
http_version:
|
191
|
-
recorded_at: Sun, 22 Feb 2015 16:20:04 GMT
|
192
|
-
- request:
|
193
|
-
method: get
|
194
|
-
uri: https://api.hubapi.com/deals/v1/deal/2153873?hapikey=demo
|
195
|
-
body:
|
196
|
-
encoding: US-ASCII
|
197
|
-
string: ''
|
198
|
-
headers: {}
|
199
|
-
response:
|
200
|
-
status:
|
201
|
-
code: 404
|
202
|
-
message: Not Found
|
203
|
-
headers:
|
204
|
-
Access-Control-Allow-Credentials:
|
205
|
-
- 'false'
|
206
|
-
Content-Type:
|
207
|
-
- application/json; charset=UTF-8
|
208
|
-
Date:
|
209
|
-
- Sun, 22 Feb 2015 16:20:04 GMT
|
210
|
-
X-Trace:
|
211
|
-
- 1BF95B4C12411F9FF5CF3361D112DC37830B229B83FB82885400A1ABA9
|
212
|
-
Content-Length:
|
213
|
-
- '101'
|
214
|
-
Connection:
|
215
|
-
- keep-alive
|
216
|
-
body:
|
217
|
-
encoding: UTF-8
|
218
|
-
string: '{"status":"error","message":"Deal does not exist","requestId":"0fa11d39-af49-4146-9a70-fdef574ab67b"}'
|
219
|
-
http_version:
|
220
|
-
recorded_at: Sun, 22 Feb 2015 16:20:04 GMT
|
221
|
-
recorded_with: VCR 2.4.0
|