hubspot 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ tested with unit tests and VCR for replaying HTTP requests.
6
6
 
7
7
  == Requirements
8
8
 
9
- Rails 3
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
- The domain of your Hubspot site, which is used in the javascript tracker code
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
- The access token for authenticating to several Hubspot services
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
- Your API key
30
+ * *Hubspot.config.hubspot_key* = 'demo'
31
+
32
+ Your API key
30
33
 
31
- * Hubspot.config.hubspot_portal_id = '62515'
32
- Your Portal ID
34
+ * *Hubspot.config.hubspot_portal_id* = '62515'
35
+
36
+ Your Portal ID
33
37
 
34
- * Hubspot.config.debug_http_output = false
35
- 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.
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
- * Leads
46
+ === Leads
42
47
 
43
48
  See: http://developers.hubspot.com/docs/endpoints#leads-api
44
49
 
45
- ** Finds
50
+ ==== Finds
46
51
 
47
52
  Hubspot::Lead.find :all, :params => { :search => 'test' }
48
53
  Hubspot::Lead.find <GUID>
49
54
 
50
- ** Updates
55
+ ==== Updates
51
56
 
52
57
  lead.firstName = 'Reinier'; lead.save!
53
58
  lead.update_attributes(:firstName => 'Reinier')
54
59
 
55
- * Blogs (including posts and comments)
60
+ === Blogs (including posts and comments)
56
61
 
57
62
  See: http://developers.hubspot.com/docs/endpoints#blog-api
58
63
 
59
- ** Finds
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
- *** Post comments
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
- ** Comments
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
- ** Finds
85
+ ==== Finds
77
86
 
78
87
  Hubspot::Keyword.find(:all, :params => { :max => 5 })
79
88
  Hubspot::Keyword.find('guid')
80
89
 
81
- ** Creates
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
- * Events
95
+ === Events
87
96
 
88
97
  See: http://developers.hubspot.com/docs/endpoints#events-api
89
98
 
90
- ** Finds
99
+ ==== Finds
91
100
 
92
101
  Hubspot::Event.find(:all, :params => { :max => 5 })
93
102
 
94
- ** Creates
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
- * Performable events
108
+ === Performable events
100
109
 
101
110
  See: http://performabledoc.hubspot.com/display/DOC/HTTP+API
102
111
 
103
- ** Records
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.save!
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 ||= { 'access_token' => Hubspot.config.hubspot_access_token, 'portalId' => Hubspot.config.hubspot_portal_id }
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
@@ -16,7 +16,7 @@ module Hubspot
16
16
 
17
17
  class << self
18
18
  def create attributes
19
- create!(attributes) rescue false
19
+ create!(attributes) #rescue false
20
20
  end
21
21
 
22
22
  def create! attributes
@@ -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 = 'demooooo-oooo-oooo-oooo-oooooooooooo'
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'
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -2054,3 +2054,273 @@
2054
2054
   (0.1ms) rollback transaction
2055
2055
   (0.0ms) begin transaction
2056
2056
   (0.1ms) rollback transaction
2057
+  (0.4ms) begin transaction
2058
+  (0.1ms) rollback transaction
2059
+  (0.1ms) begin transaction
2060
+  (0.1ms) rollback transaction
2061
+  (0.0ms) begin transaction
2062
+  (0.1ms) rollback transaction
2063
+  (0.0ms) begin transaction
2064
+  (0.1ms) rollback transaction
2065
+  (0.1ms) begin transaction
2066
+  (0.1ms) rollback transaction
2067
+  (0.0ms) begin transaction
2068
+  (0.1ms) rollback transaction
2069
+  (0.1ms) begin transaction
2070
+  (0.1ms) rollback transaction
2071
+  (0.1ms) begin transaction
2072
+  (0.1ms) rollback transaction
2073
+  (0.1ms) begin transaction
2074
+  (0.1ms) rollback transaction
2075
+  (0.0ms) begin transaction
2076
+  (0.1ms) rollback transaction
2077
+  (0.1ms) begin transaction
2078
+  (0.1ms) rollback transaction
2079
+  (0.1ms) begin transaction
2080
+  (0.1ms) rollback transaction
2081
+  (0.0ms) begin transaction
2082
+  (0.1ms) rollback transaction
2083
+  (0.1ms) begin transaction
2084
+  (0.1ms) rollback transaction
2085
+  (0.0ms) begin transaction
2086
+  (0.1ms) rollback transaction
2087
+  (0.4ms) begin transaction
2088
+  (0.1ms) rollback transaction
2089
+  (0.0ms) begin transaction
2090
+  (0.1ms) rollback transaction
2091
+  (0.0ms) begin transaction
2092
+  (0.1ms) rollback transaction
2093
+  (0.0ms) begin transaction
2094
+  (0.1ms) rollback transaction
2095
+  (0.1ms) begin transaction
2096
+  (0.1ms) rollback transaction
2097
+  (0.0ms) begin transaction
2098
+  (0.1ms) rollback transaction
2099
+  (0.1ms) begin transaction
2100
+  (0.1ms) rollback transaction
2101
+  (0.0ms) begin transaction
2102
+  (0.1ms) rollback transaction
2103
+  (0.1ms) begin transaction
2104
+  (0.1ms) rollback transaction
2105
+  (0.0ms) begin transaction
2106
+  (0.1ms) rollback transaction
2107
+  (0.1ms) begin transaction
2108
+  (0.1ms) rollback transaction
2109
+  (0.1ms) begin transaction
2110
+  (0.1ms) rollback transaction
2111
+  (0.0ms) begin transaction
2112
+  (0.1ms) rollback transaction
2113
+  (0.1ms) begin transaction
2114
+  (0.1ms) rollback transaction
2115
+  (0.0ms) begin transaction
2116
+  (0.1ms) rollback transaction
2117
+  (0.4ms) begin transaction
2118
+  (0.1ms) rollback transaction
2119
+  (0.1ms) begin transaction
2120
+  (0.1ms) rollback transaction
2121
+  (0.0ms) begin transaction
2122
+  (0.1ms) rollback transaction
2123
+  (0.0ms) begin transaction
2124
+  (0.1ms) rollback transaction
2125
+  (0.1ms) begin transaction
2126
+  (0.1ms) rollback transaction
2127
+  (0.0ms) begin transaction
2128
+  (0.1ms) rollback transaction
2129
+  (0.1ms) begin transaction
2130
+  (0.1ms) rollback transaction
2131
+  (0.0ms) begin transaction
2132
+  (0.1ms) rollback transaction
2133
+  (0.1ms) begin transaction
2134
+  (0.1ms) rollback transaction
2135
+  (0.0ms) begin transaction
2136
+  (0.1ms) rollback transaction
2137
+  (0.2ms) begin transaction
2138
+  (0.1ms) rollback transaction
2139
+  (0.1ms) begin transaction
2140
+  (0.0ms) rollback transaction
2141
+  (0.0ms) begin transaction
2142
+  (0.1ms) rollback transaction
2143
+  (0.1ms) begin transaction
2144
+  (0.1ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+  (0.1ms) rollback transaction
2147
+  (0.4ms) begin transaction
2148
+  (0.1ms) rollback transaction
2149
+  (0.1ms) begin transaction
2150
+  (0.1ms) rollback transaction
2151
+  (0.0ms) begin transaction
2152
+  (0.1ms) rollback transaction
2153
+  (0.0ms) begin transaction
2154
+  (0.1ms) rollback transaction
2155
+  (0.1ms) begin transaction
2156
+  (0.1ms) rollback transaction
2157
+  (0.1ms) begin transaction
2158
+  (0.1ms) rollback transaction
2159
+  (0.1ms) begin transaction
2160
+  (0.1ms) rollback transaction
2161
+  (0.1ms) begin transaction
2162
+  (0.1ms) rollback transaction
2163
+  (0.1ms) begin transaction
2164
+  (0.1ms) rollback transaction
2165
+  (0.1ms) begin transaction
2166
+  (0.1ms) rollback transaction
2167
+  (0.0ms) begin transaction
2168
+  (0.1ms) rollback transaction
2169
+  (0.1ms) begin transaction
2170
+  (0.0ms) rollback transaction
2171
+  (0.0ms) begin transaction
2172
+  (0.1ms) rollback transaction
2173
+  (0.1ms) begin transaction
2174
+  (0.1ms) rollback transaction
2175
+  (0.1ms) begin transaction
2176
+  (0.1ms) rollback transaction
2177
+  (0.4ms) begin transaction
2178
+  (0.1ms) rollback transaction
2179
+  (0.1ms) begin transaction
2180
+  (0.1ms) rollback transaction
2181
+  (0.1ms) begin transaction
2182
+  (0.1ms) rollback transaction
2183
+  (0.0ms) begin transaction
2184
+  (0.1ms) rollback transaction
2185
+  (0.1ms) begin transaction
2186
+  (0.1ms) rollback transaction
2187
+  (0.0ms) begin transaction
2188
+  (0.1ms) rollback transaction
2189
+  (0.1ms) begin transaction
2190
+  (0.1ms) rollback transaction
2191
+  (0.0ms) begin transaction
2192
+  (0.1ms) rollback transaction
2193
+  (0.1ms) begin transaction
2194
+  (0.1ms) rollback transaction
2195
+  (0.0ms) begin transaction
2196
+  (0.1ms) rollback transaction
2197
+  (0.0ms) begin transaction
2198
+  (0.1ms) rollback transaction
2199
+  (0.1ms) begin transaction
2200
+  (0.0ms) rollback transaction
2201
+  (0.1ms) begin transaction
2202
+  (0.1ms) rollback transaction
2203
+  (0.1ms) begin transaction
2204
+  (0.1ms) rollback transaction
2205
+  (0.0ms) begin transaction
2206
+  (0.1ms) rollback transaction
2207
+  (0.4ms) begin transaction
2208
+  (0.1ms) rollback transaction
2209
+  (0.1ms) begin transaction
2210
+  (0.1ms) rollback transaction
2211
+  (0.0ms) begin transaction
2212
+  (0.1ms) rollback transaction
2213
+  (0.0ms) begin transaction
2214
+  (0.1ms) rollback transaction
2215
+  (0.1ms) begin transaction
2216
+  (0.1ms) rollback transaction
2217
+  (0.0ms) begin transaction
2218
+  (0.1ms) rollback transaction
2219
+  (0.1ms) begin transaction
2220
+  (0.1ms) rollback transaction
2221
+  (0.0ms) begin transaction
2222
+  (0.1ms) rollback transaction
2223
+  (0.1ms) begin transaction
2224
+  (0.1ms) rollback transaction
2225
+  (0.0ms) begin transaction
2226
+  (0.1ms) rollback transaction
2227
+  (0.0ms) begin transaction
2228
+  (0.1ms) rollback transaction
2229
+  (0.1ms) begin transaction
2230
+  (0.0ms) rollback transaction
2231
+  (0.1ms) begin transaction
2232
+  (0.1ms) rollback transaction
2233
+  (0.1ms) begin transaction
2234
+  (0.1ms) rollback transaction
2235
+  (0.0ms) begin transaction
2236
+  (0.1ms) rollback transaction
2237
+  (0.4ms) begin transaction
2238
+  (0.1ms) rollback transaction
2239
+  (0.0ms) begin transaction
2240
+  (0.1ms) rollback transaction
2241
+  (0.0ms) begin transaction
2242
+  (0.1ms) rollback transaction
2243
+  (0.0ms) begin transaction
2244
+  (0.1ms) rollback transaction
2245
+  (0.1ms) begin transaction
2246
+  (0.1ms) rollback transaction
2247
+  (0.0ms) begin transaction
2248
+  (0.1ms) rollback transaction
2249
+  (0.1ms) begin transaction
2250
+  (0.1ms) rollback transaction
2251
+  (0.0ms) begin transaction
2252
+  (0.1ms) rollback transaction
2253
+  (0.1ms) begin transaction
2254
+  (0.1ms) rollback transaction
2255
+  (0.1ms) begin transaction
2256
+  (0.1ms) rollback transaction
2257
+  (0.0ms) begin transaction
2258
+  (0.1ms) rollback transaction
2259
+  (0.1ms) begin transaction
2260
+  (0.0ms) rollback transaction
2261
+  (0.1ms) begin transaction
2262
+  (0.1ms) rollback transaction
2263
+  (0.1ms) begin transaction
2264
+  (0.1ms) rollback transaction
2265
+  (0.0ms) begin transaction
2266
+  (0.1ms) rollback transaction
2267
+  (0.4ms) begin transaction
2268
+  (0.1ms) rollback transaction
2269
+  (0.1ms) begin transaction
2270
+  (0.1ms) rollback transaction
2271
+  (0.0ms) begin transaction
2272
+  (0.1ms) rollback transaction
2273
+  (0.1ms) begin transaction
2274
+  (0.1ms) rollback transaction
2275
+  (0.1ms) begin transaction
2276
+  (0.1ms) rollback transaction
2277
+  (0.1ms) begin transaction
2278
+  (0.1ms) rollback transaction
2279
+  (0.1ms) begin transaction
2280
+  (0.1ms) rollback transaction
2281
+  (0.0ms) begin transaction
2282
+  (0.1ms) rollback transaction
2283
+  (0.1ms) begin transaction
2284
+  (0.1ms) rollback transaction
2285
+  (0.1ms) begin transaction
2286
+  (0.1ms) rollback transaction
2287
+  (0.0ms) begin transaction
2288
+  (0.1ms) rollback transaction
2289
+  (0.1ms) begin transaction
2290
+  (0.0ms) rollback transaction
2291
+  (0.0ms) begin transaction
2292
+  (0.1ms) rollback transaction
2293
+  (0.1ms) begin transaction
2294
+  (0.1ms) rollback transaction
2295
+  (0.0ms) begin transaction
2296
+  (0.1ms) rollback transaction
2297
+  (0.4ms) begin transaction
2298
+  (0.1ms) rollback transaction
2299
+  (0.0ms) begin transaction
2300
+  (0.1ms) rollback transaction
2301
+  (0.1ms) begin transaction
2302
+  (0.1ms) rollback transaction
2303
+  (0.0ms) begin transaction
2304
+  (0.1ms) rollback transaction
2305
+  (0.1ms) begin transaction
2306
+  (0.1ms) rollback transaction
2307
+  (0.1ms) begin transaction
2308
+  (0.1ms) rollback transaction
2309
+  (0.1ms) begin transaction
2310
+  (0.1ms) rollback transaction
2311
+  (0.1ms) begin transaction
2312
+  (0.1ms) rollback transaction
2313
+  (0.1ms) begin transaction
2314
+  (0.1ms) rollback transaction
2315
+  (0.0ms) begin transaction
2316
+  (0.1ms) rollback transaction
2317
+  (0.0ms) begin transaction
2318
+  (0.1ms) rollback transaction
2319
+  (0.1ms) begin transaction
2320
+  (0.1ms) rollback transaction
2321
+  (0.0ms) begin transaction
2322
+  (0.1ms) rollback transaction
2323
+  (0.1ms) begin transaction
2324
+  (0.1ms) rollback transaction
2325
+  (0.0ms) begin transaction
2326
+  (0.1ms) 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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=2&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=2&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=5&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&createDate=1323272544000&description=test&eventType=new%20event&portalId=62515&url=http://dev.hubspot.com
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=5&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=5&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=10&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=2&portalId=62515
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?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&portalId=62515
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.1
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-05 00:00:00.000000000 Z
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: 3121774139926307825
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: 3121774139926307825
148
+ hash: 4273036089859064292
149
149
  requirements: []
150
150
  rubyforge_project:
151
151
  rubygems_version: 1.8.21