hubspot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +40 -31
- data/app/models/hubspot/connection.rb +12 -1
- data/app/models/hubspot/event.rb +1 -1
- data/lib/hubspot/engine.rb +2 -2
- data/lib/hubspot/version.rb +1 -1
- data/test/dummy/log/test.log +270 -0
- data/test/fixtures/vcr_cassettes/blog-comments.yml +2 -2
- data/test/fixtures/vcr_cassettes/blog-find.yml +1 -1
- data/test/fixtures/vcr_cassettes/blog-posts.yml +2 -2
- data/test/fixtures/vcr_cassettes/blogs-list.yml +1 -1
- data/test/fixtures/vcr_cassettes/event-create.yml +1 -1
- data/test/fixtures/vcr_cassettes/events-list.yml +1 -1
- data/test/fixtures/vcr_cassettes/keyword-create.yml +1 -1
- data/test/fixtures/vcr_cassettes/keywords-list.yml +1 -1
- data/test/fixtures/vcr_cassettes/lead-find.yml +1 -1
- data/test/fixtures/vcr_cassettes/lead-update.yml +3 -3
- data/test/fixtures/vcr_cassettes/leads-list.yml +1 -1
- data/test/fixtures/vcr_cassettes/post-comments.yml +2 -2
- data/test/fixtures/vcr_cassettes/post-find.yml +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@ tested with unit tests and VCR for replaying HTTP requests.
|
|
6
6
|
|
7
7
|
== Requirements
|
8
8
|
|
9
|
-
|
9
|
+
Rails 3
|
10
10
|
|
11
11
|
== Installation
|
12
12
|
|
@@ -19,92 +19,101 @@ Add hubspot to your Gemfile:
|
|
19
19
|
This gem is a Rails Engine. The gem can be configured by changing the default engine configuration. The following settings
|
20
20
|
can be added to your application.rb or an initializer:
|
21
21
|
|
22
|
-
* Hubspot.config.hubspot_site = 'demo.app11.hubspot.com'
|
23
|
-
|
22
|
+
* *Hubspot.config.hubspot_site* = 'demo.app11.hubspot.com'
|
23
|
+
|
24
|
+
The domain of your Hubspot site, which is used in the javascript tracker code
|
24
25
|
|
25
|
-
* Hubspot.config.hubspot_access_token = 'demooooo-oooo-oooo-oooo-oooooooooooo'
|
26
|
-
|
26
|
+
* *Hubspot.config.hubspot_access_token* = 'demooooo-oooo-oooo-oooo-oooooooooooo'
|
27
|
+
|
28
|
+
The access token for authenticating to several Hubspot services
|
27
29
|
|
28
|
-
* Hubspot.config.hubspot_key = 'demo'
|
29
|
-
|
30
|
+
* *Hubspot.config.hubspot_key* = 'demo'
|
31
|
+
|
32
|
+
Your API key
|
30
33
|
|
31
|
-
* Hubspot.config.hubspot_portal_id = '62515'
|
32
|
-
|
34
|
+
* *Hubspot.config.hubspot_portal_id* = '62515'
|
35
|
+
|
36
|
+
Your Portal ID
|
33
37
|
|
34
|
-
* Hubspot.config.debug_http_output = false
|
35
|
-
|
38
|
+
* *Hubspot.config.debug_http_output* = false
|
39
|
+
|
40
|
+
Enables/disables logging of HTTP requests and response. False disables debugging, setting it to STDOUT enables logging to STDOUT. Of course you can specify any IO object you want.
|
36
41
|
|
37
42
|
== Usage
|
38
43
|
|
39
44
|
Currently, the gem supports the following Hubspot API's:
|
40
45
|
|
41
|
-
|
46
|
+
=== Leads
|
42
47
|
|
43
48
|
See: http://developers.hubspot.com/docs/endpoints#leads-api
|
44
49
|
|
45
|
-
|
50
|
+
==== Finds
|
46
51
|
|
47
52
|
Hubspot::Lead.find :all, :params => { :search => 'test' }
|
48
53
|
Hubspot::Lead.find <GUID>
|
49
54
|
|
50
|
-
|
55
|
+
==== Updates
|
51
56
|
|
52
57
|
lead.firstName = 'Reinier'; lead.save!
|
53
58
|
lead.update_attributes(:firstName => 'Reinier')
|
54
59
|
|
55
|
-
|
60
|
+
=== Blogs (including posts and comments)
|
56
61
|
|
57
62
|
See: http://developers.hubspot.com/docs/endpoints#blog-api
|
58
63
|
|
59
|
-
|
64
|
+
==== Finds
|
65
|
+
|
60
66
|
Hubspot::Blog.find :all, :params => { :max => 10 }
|
61
67
|
Hubspot::Blog.find <GUID>
|
68
|
+
|
69
|
+
==== Comments
|
70
|
+
|
71
|
+
Hubspot::Blog.find('guid').comments
|
72
|
+
|
73
|
+
==== Posts
|
62
74
|
|
63
|
-
** Posts
|
64
75
|
Hubspot::Blog.find('guid').posts
|
65
76
|
|
66
|
-
|
77
|
+
===== Post comments
|
78
|
+
|
67
79
|
Hubspot::Blogs::Post.find("6ca6fdc5-a81f-44db-a63b-f56ab2636c69", :params => { :blog_guid => "0d61e4ca-e395-4c1c-8766-afaa48bf68db" }).comments
|
68
80
|
|
69
|
-
|
70
|
-
Hubspot::Blog.find('guid').comments
|
71
|
-
|
72
|
-
* Keywords
|
81
|
+
=== Keywords
|
73
82
|
|
74
83
|
See: http://developers.hubspot.com/docs/endpoints#keywords-api
|
75
84
|
|
76
|
-
|
85
|
+
==== Finds
|
77
86
|
|
78
87
|
Hubspot::Keyword.find(:all, :params => { :max => 5 })
|
79
88
|
Hubspot::Keyword.find('guid')
|
80
89
|
|
81
|
-
|
90
|
+
==== Creates
|
82
91
|
|
83
|
-
Hubspot::Keyword.create!({ :keyword => { :keyword => 'key' }})
|
92
|
+
Hubspot::Keyword.create!({ :keyword => { :keyword => 'key' }})
|
84
93
|
Hubspot::Keyword.create({ :keyword => { :keyword => 'key' }})
|
85
94
|
|
86
|
-
|
95
|
+
=== Events
|
87
96
|
|
88
97
|
See: http://developers.hubspot.com/docs/endpoints#events-api
|
89
98
|
|
90
|
-
|
99
|
+
==== Finds
|
91
100
|
|
92
101
|
Hubspot::Event.find(:all, :params => { :max => 5 })
|
93
102
|
|
94
|
-
|
103
|
+
==== Creates
|
95
104
|
|
96
105
|
Hubspot::Event.create!(:eventType => 'new event', :description => 'test')
|
97
106
|
Hubspot::Event.create(:eventType => 'new event', :description => 'test')
|
98
107
|
|
99
|
-
|
108
|
+
=== Performable events
|
100
109
|
|
101
110
|
See: http://performabledoc.hubspot.com/display/DOC/HTTP+API
|
102
111
|
|
103
|
-
|
112
|
+
==== Records
|
104
113
|
|
105
114
|
event = Hubspot::Performable::Event.new('event-12345', Date.civil(2012), nil, 'http://example.com')
|
106
115
|
event.custom_parameters = { :email => 'test@example.com' }
|
107
|
-
event.
|
116
|
+
event.record!
|
108
117
|
|
109
118
|
Please take a look at the unit tests for examples!
|
110
119
|
|
@@ -4,7 +4,18 @@ module Hubspot
|
|
4
4
|
|
5
5
|
# Set default parameters to send along with each request
|
6
6
|
def self.default_parameters
|
7
|
-
@default_parameters ||=
|
7
|
+
@default_parameters ||= begin
|
8
|
+
default_parameter_hash = {}
|
9
|
+
default_parameter_hash['portalId'] = Hubspot.config.hubspot_portal_id
|
10
|
+
|
11
|
+
if Hubspot.config.hubspot_access_token.present?
|
12
|
+
default_parameter_hash['access_token'] = Hubspot.config.hubspot_access_token
|
13
|
+
else
|
14
|
+
default_parameter_hash['hapikey'] = Hubspot.config.hubspot_key
|
15
|
+
end
|
16
|
+
|
17
|
+
default_parameter_hash
|
18
|
+
end
|
8
19
|
end
|
9
20
|
|
10
21
|
# Override to support debug output
|
data/app/models/hubspot/event.rb
CHANGED
data/lib/hubspot/engine.rb
CHANGED
@@ -5,8 +5,8 @@ module Hubspot
|
|
5
5
|
# The domain of your Hubspot site, which is used in the javascript tracker code
|
6
6
|
config.hubspot_site = 'demo.app11.hubspot.com'
|
7
7
|
|
8
|
-
# The access token for authenticating to several Hubspot services
|
9
|
-
config.hubspot_access_token =
|
8
|
+
# The access token for authenticating to several Hubspot services, e.g. 'demooooo-oooo-oooo-oooo-oooooooooooo'
|
9
|
+
config.hubspot_access_token = nil
|
10
10
|
|
11
11
|
# Your API key
|
12
12
|
config.hubspot_key = 'demo'
|
data/lib/hubspot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -2054,3 +2054,273 @@
|
|
2054
2054
|
[1m[35m (0.1ms)[0m rollback transaction
|
2055
2055
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2056
2056
|
[1m[35m (0.1ms)[0m rollback transaction
|
2057
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2058
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2059
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2060
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2061
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2062
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2064
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2066
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2068
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2069
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2070
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2071
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2072
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2073
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2075
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2076
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2077
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2078
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2079
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2080
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2081
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2084
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2085
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2086
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2087
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2088
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2090
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2091
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2092
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2093
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2094
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2095
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2096
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2098
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2102
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2103
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2104
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2105
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2109
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2111
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2112
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2113
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2114
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2117
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2127
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2128
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2136
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2137
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2140
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2145
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2146
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2147
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2154
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2156
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2158
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2161
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2164
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2168
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2169
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2170
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2172
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2173
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2176
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2177
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2178
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2180
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2186
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2188
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2194
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2196
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2202
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2203
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2204
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2207
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2208
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2210
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2212
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2216
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2218
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2219
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2220
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2221
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2226
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2227
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2228
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2229
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2230
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2234
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2236
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2237
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2238
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2240
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2241
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2242
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2246
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2248
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2250
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2252
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2254
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2255
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2256
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2258
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2261
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2262
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2264
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2266
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2267
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2268
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2269
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2270
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2271
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2272
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2273
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2278
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2279
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2282
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2286
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2287
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2292
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2294
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2296
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2297
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2298
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2304
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2305
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2306
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2308
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2309
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2314
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2316
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2317
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2319
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2322
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2324
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2325
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2326
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -35,7 +35,7 @@ http_interactions:
|
|
35
35
|
recorded_at: Wed, 04 Apr 2012 23:33:01 GMT
|
36
36
|
- request:
|
37
37
|
method: get
|
38
|
-
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db/comments.json?
|
38
|
+
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db/comments.json?hapikey=demo&max=2&portalId=62515
|
39
39
|
body:
|
40
40
|
encoding: US-ASCII
|
41
41
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -35,7 +35,7 @@ http_interactions:
|
|
35
35
|
recorded_at: Wed, 04 Apr 2012 23:33:05 GMT
|
36
36
|
- request:
|
37
37
|
method: get
|
38
|
-
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db/posts.json?
|
38
|
+
uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db/posts.json?hapikey=demo&max=2&portalId=62515
|
39
39
|
body:
|
40
40
|
encoding: US-ASCII
|
41
41
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/list.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/list.json?hapikey=demo&max=5&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.hubapi.com/events/v1/events?
|
5
|
+
uri: https://api.hubapi.com/events/v1/events?createDate=1323272544000&description=test&eventType=new%20event&hapikey=demo&portalId=62515&url=http://dev.hubspot.com
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/events/v1/events?
|
5
|
+
uri: https://api.hubapi.com/events/v1/events?hapikey=demo&max=5&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.hubapi.com/keywords/v1/keywords?
|
5
|
+
uri: https://api.hubapi.com/keywords/v1/keywords?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ! '{"keyword":"sleutel"}'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/keywords/v1/keywords?
|
5
|
+
uri: https://api.hubapi.com/keywords/v1/keywords?hapikey=demo&max=5&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?
|
5
|
+
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?
|
5
|
+
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -102,7 +102,7 @@ http_interactions:
|
|
102
102
|
recorded_at: Wed, 04 Apr 2012 21:27:47 GMT
|
103
103
|
- request:
|
104
104
|
method: put
|
105
|
-
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?
|
105
|
+
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?hapikey=demo&portalId=62515
|
106
106
|
body:
|
107
107
|
encoding: US-ASCII
|
108
108
|
string: ! '{"address":"","city":"<a href=\"http://boston.com\">Boston</a>","company":"Proquest","country":"etas
|
@@ -138,7 +138,7 @@ http_interactions:
|
|
138
138
|
recorded_at: Wed, 04 Apr 2012 21:27:48 GMT
|
139
139
|
- request:
|
140
140
|
method: get
|
141
|
-
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?
|
141
|
+
uri: https://api.hubapi.com/leads/v1/lead/8a41f2f22906b93a012906b9438f0008.json?hapikey=demo&portalId=62515
|
142
142
|
body:
|
143
143
|
encoding: US-ASCII
|
144
144
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/leads/v1/list.json?
|
5
|
+
uri: https://api.hubapi.com/leads/v1/list.json?hapikey=demo&max=10&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -38,7 +38,7 @@ http_interactions:
|
|
38
38
|
recorded_at: Wed, 04 Apr 2012 23:41:21 GMT
|
39
39
|
- request:
|
40
40
|
method: get
|
41
|
-
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69/comments.json?
|
41
|
+
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69/comments.json?hapikey=demo&max=2&portalId=62515
|
42
42
|
body:
|
43
43
|
encoding: US-ASCII
|
44
44
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69.json?
|
5
|
+
uri: https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69.json?hapikey=demo&portalId=62515
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: 4273036089859064292
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash:
|
148
|
+
hash: 4273036089859064292
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
151
|
rubygems_version: 1.8.21
|