hubspot 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +149 -0
  3. data/Rakefile +38 -0
  4. data/app/helpers/hubspot_helper.rb +17 -0
  5. data/app/models/hubspot/base.rb +40 -0
  6. data/app/models/hubspot/blog.rb +35 -0
  7. data/app/models/hubspot/blogs/blog_association.rb +35 -0
  8. data/app/models/hubspot/blogs/comment.rb +5 -0
  9. data/app/models/hubspot/blogs/post.rb +12 -0
  10. data/app/models/hubspot/blogs/posts/comment.rb +23 -0
  11. data/app/models/hubspot/connection.rb +35 -0
  12. data/app/models/hubspot/event.rb +39 -0
  13. data/app/models/hubspot/keyword.rb +49 -0
  14. data/app/models/hubspot/lead.rb +26 -0
  15. data/app/models/hubspot/performable/event.rb +67 -0
  16. data/lib/hubspot.rb +8 -0
  17. data/lib/hubspot/action_controller_extensions.rb +15 -0
  18. data/lib/hubspot/engine.rb +30 -0
  19. data/lib/hubspot/version.rb +3 -0
  20. data/lib/tasks/hubspot_tasks.rake +4 -0
  21. data/test/dummy/README.rdoc +261 -0
  22. data/test/dummy/Rakefile +7 -0
  23. data/test/dummy/app/assets/javascripts/application.js +15 -0
  24. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  25. data/test/dummy/app/controllers/application_controller.rb +3 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +56 -0
  30. data/test/dummy/config/boot.rb +10 -0
  31. data/test/dummy/config/database.yml +25 -0
  32. data/test/dummy/config/environment.rb +5 -0
  33. data/test/dummy/config/environments/development.rb +37 -0
  34. data/test/dummy/config/environments/production.rb +67 -0
  35. data/test/dummy/config/environments/test.rb +37 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/inflections.rb +15 -0
  38. data/test/dummy/config/initializers/mime_types.rb +5 -0
  39. data/test/dummy/config/initializers/secret_token.rb +7 -0
  40. data/test/dummy/config/initializers/session_store.rb +8 -0
  41. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/test/dummy/config/locales/en.yml +5 -0
  43. data/test/dummy/config/routes.rb +58 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/test.log +2056 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +25 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/fixtures/vcr_cassettes/blog-comments.yml +74 -0
  52. data/test/fixtures/vcr_cassettes/blog-find.yml +36 -0
  53. data/test/fixtures/vcr_cassettes/blog-posts.yml +75 -0
  54. data/test/fixtures/vcr_cassettes/blogs-list.yml +39 -0
  55. data/test/fixtures/vcr_cassettes/event-create.yml +36 -0
  56. data/test/fixtures/vcr_cassettes/event-record.yml +47 -0
  57. data/test/fixtures/vcr_cassettes/events-list.yml +41 -0
  58. data/test/fixtures/vcr_cassettes/keyword-create.yml +36 -0
  59. data/test/fixtures/vcr_cassettes/keywords-list.yml +385 -0
  60. data/test/fixtures/vcr_cassettes/lead-find.yml +103 -0
  61. data/test/fixtures/vcr_cassettes/lead-update.yml +239 -0
  62. data/test/fixtures/vcr_cassettes/leads-list.yml +190 -0
  63. data/test/fixtures/vcr_cassettes/post-comments.yml +72 -0
  64. data/test/fixtures/vcr_cassettes/post-find.yml +39 -0
  65. data/test/hubspot_test.rb +5 -0
  66. data/test/test_helper.rb +22 -0
  67. data/test/unit/blog_test.rb +37 -0
  68. data/test/unit/event_test.rb +21 -0
  69. data/test/unit/keyword_test.rb +22 -0
  70. data/test/unit/lead_test.rb +31 -0
  71. data/test/unit/performable_event_test.rb +22 -0
  72. data/test/unit/post_test.rb +20 -0
  73. metadata +207 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
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
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 04 Apr 2012 23:33:01 GMT
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"blogTitle":"Test Blog (content from customers.hubspot.com)","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=584130&tabId=300291","guid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","jsonUrl":"https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog-for-testing"}'
34
+ http_version:
35
+ recorded_at: Wed, 04 Apr 2012 23:33:01 GMT
36
+ - request:
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
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ''
42
+ headers:
43
+ Accept:
44
+ - application/json
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ User-Agent:
48
+ - Ruby
49
+ response:
50
+ status:
51
+ code: 200
52
+ message: OK
53
+ headers:
54
+ Date:
55
+ - Wed, 04 Apr 2012 23:33:04 GMT
56
+ Content-Type:
57
+ - application/json;charset=UTF-8
58
+ Transfer-Encoding:
59
+ - chunked
60
+ Connection:
61
+ - keep-alive
62
+ Server:
63
+ - Apache-Coyote/1.1
64
+ body:
65
+ encoding: US-ASCII
66
+ string: ! '[{"anonyEmail":"testapi@hubspot.com","anonyName":"Test Comment Author","anonyUrl":"http://hubspot.com","approvedTimestamp":null,"blogGuid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","blogUrl":"demo.hubapi.com/blog-for-testing","comment":"I
67
+ am a test comment","createTimestamp":1333483437000,"guid":"b29e7b88-9baf-4bde-bad5-32945c62fc86","jsonUrl":"https://api.hubapi.com/blog/v1/comments/b29e7b88-9baf-4bde-bad5-32945c62fc86.json","judgeIsSpam":null,"judgeScoredTimestamp":null,"notifiedModeratorsTimestamp":null,"notifiedNonModeratorsTimestamp":null,"notify":false,"portalId":62515,"postGuid":"6a0626c6-98f1-4b7c-a3c0-0b5a1daabf2b","postTitle":"I
68
+ am a test post title UPDATED","postUrl":"http://demo.hubapi.com/blog-for-testing/bid/78906/","referrer":"","userAgent":"","userEmail":"","userToken":""},{"anonyEmail":"hapihp@hs.com","anonyName":"hapihp
69
+ comment Author","anonyUrl":"http://hubspot.com","approvedTimestamp":null,"blogGuid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","blogUrl":"demo.hubapi.com/blog-for-testing","comment":"hapihp
70
+ test comment created a new one now","createTimestamp":1332176117000,"guid":"c03f54f8-b251-443a-96d3-f08601713a15","jsonUrl":"https://api.hubapi.com/blog/v1/comments/c03f54f8-b251-443a-96d3-f08601713a15.json","judgeIsSpam":false,"judgeScoredTimestamp":null,"notifiedModeratorsTimestamp":null,"notifiedNonModeratorsTimestamp":null,"notify":false,"portalId":62515,"postGuid":"ae15391a-7bd9-454d-b51b-5c480a010497","postTitle":"new
71
+ improves Updated title","postUrl":"http://demo.hubapi.com/blog-for-testing/bid/80149/","referrer":"","userAgent":"","userEmail":"hapihp@hs.com","userToken":""}]'
72
+ http_version:
73
+ recorded_at: Wed, 04 Apr 2012 23:33:04 GMT
74
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
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
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 04 Apr 2012 23:34:34 GMT
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"blogTitle":"Test Blog (content from customers.hubspot.com)","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=584130&tabId=300291","guid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","jsonUrl":"https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog-for-testing"}'
34
+ http_version:
35
+ recorded_at: Wed, 04 Apr 2012 23:34:34 GMT
36
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
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
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 04 Apr 2012 23:33:05 GMT
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{"blogTitle":"Test Blog (content from customers.hubspot.com)","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=584130&tabId=300291","guid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","jsonUrl":"https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog-for-testing"}'
34
+ http_version:
35
+ recorded_at: Wed, 04 Apr 2012 23:33:05 GMT
36
+ - request:
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
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ''
42
+ headers:
43
+ Accept:
44
+ - application/json
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ User-Agent:
48
+ - Ruby
49
+ response:
50
+ status:
51
+ code: 200
52
+ message: OK
53
+ headers:
54
+ Date:
55
+ - Wed, 04 Apr 2012 23:33:06 GMT
56
+ Content-Type:
57
+ - application/json;charset=UTF-8
58
+ Transfer-Encoding:
59
+ - chunked
60
+ Connection:
61
+ - keep-alive
62
+ Server:
63
+ - Apache-Coyote/1.1
64
+ body:
65
+ encoding: US-ASCII
66
+ string: ! '[{"authorDisplayName":"testapi@hubspot.com","authorEmail":"testapi@hubspot.com","blogGuid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","body":"<b>This
67
+ is the content of the blog post<\/b>","createTimestamp":1333483438000,"draft":true,"guid":"6ca6fdc5-a81f-44db-a63b-f56ab2636c69","jsonUrl":"https://api.hubapi.com/blog/v1/posts/6ca6fdc5-a81f-44db-a63b-f56ab2636c69.json","lastUpdateTimestamp":1333483438000,"metaDescription":"test
68
+ metaDescription!","metaKeywords":"these are totally test keywords.","portalId":62515,"postAnalytics":null,"publishTimestamp":1333483438000,"sendNotifications":true,"summary":"This
69
+ is a test summary","tags":["tag2","tag1"],"title":"I am a test post","url":"http://demo.hubapi.com/blog-for-testing/bid/103902/"},{"authorDisplayName":"testapi@hubspot.com","authorEmail":"testapi@hubspot.com","blogGuid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","body":"this
70
+ is the content for testing hapihp","createTimestamp":1332176115000,"draft":true,"guid":"d34ed988-64eb-46c2-9eca-5f79d0bf4a9c","jsonUrl":"https://api.hubapi.com/blog/v1/posts/d34ed988-64eb-46c2-9eca-5f79d0bf4a9c.json","lastUpdateTimestamp":1332176115000,"metaDescription":"","metaKeywords":"","portalId":62515,"postAnalytics":null,"publishTimestamp":1332176115000,"sendNotifications":true,"summary":"testing
71
+ hapihp summary","tags":["hapihp tag 2","hapihp tag 1"],"title":"find this
72
+ one","url":"http://demo.hubapi.com/blog-for-testing/bid/103366/"}]'
73
+ http_version:
74
+ recorded_at: Wed, 04 Apr 2012 23:33:06 GMT
75
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.hubapi.com/blog/v1/list.json?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=5&portalId=62515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 04 Apr 2012 23:23:36 GMT
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '[{"blogTitle":"Test Blog (content from customers.hubspot.com)","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=584130&tabId=300291","guid":"0d61e4ca-e395-4c1c-8766-afaa48bf68db","jsonUrl":"https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog-for-testing"},{"blogTitle":"Industry
34
+ News from around the web","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=597636&tabId=304641","guid":"0ee9c214-3b05-45e2-b757-7a9b58103f5e","jsonUrl":"https://api.hubapi.com/blog/v1/0ee9c214-3b05-45e2-b757-7a9b58103f5e.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/industry-news"},{"blogTitle":"Our
35
+ Bl212og","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=558743&tabId=167755","guid":"4f1c84dc-d303-4905-854c-6b923c0b55cd","jsonUrl":"https://api.hubapi.com/blog/v1/4f1c84dc-d303-4905-854c-6b923c0b55cd.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/"},{"blogTitle":"Our
36
+ Blog","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=499184&tabId=265430","guid":"98a74673-d4d6-4319-b741-dd071566c1e1","jsonUrl":"https://api.hubapi.com/blog/v1/98a74673-d4d6-4319-b741-dd071566c1e1.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog-api-post-deploy-test"},{"blogTitle":"test","feedUrl":"demo.hubapi.com/CMS/UI/Modules/BizBlogger/rss.aspx?moduleId=587336&tabId=301523","guid":"ddb865bf-a1a8-4528-b931-f8aa605db0c4","jsonUrl":"https://api.hubapi.com/blog/v1/ddb865bf-a1a8-4528-b931-f8aa605db0c4.json","moderated":false,"moderators":[],"portalId":62515,"webUrl":"demo.hubapi.com/blog"}]'
37
+ http_version:
38
+ recorded_at: Wed, 04 Apr 2012 23:23:37 GMT
39
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
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
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
20
+ headers:
21
+ Date:
22
+ - Thu, 05 Apr 2012 08:04:58 GMT
23
+ Content-Type:
24
+ - application/json;charset=utf-8
25
+ Connection:
26
+ - keep-alive
27
+ Server:
28
+ - Apache-Coyote/1.1
29
+ Content-Length:
30
+ - '0'
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ''
34
+ http_version:
35
+ recorded_at: Thu, 05 Apr 2012 08:04:58 GMT
36
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://analytics.performable.com/v1/event?_a=demo&_l=http://example.com&_n=event-12345&_t=2012-01-01&email=test@example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: !binary |-
18
+ T0s=
19
+ headers:
20
+ !binary "Q29udGVudC1UeXBl":
21
+ - !binary |-
22
+ aW1hZ2UvZ2lm
23
+ !binary "RGF0ZQ==":
24
+ - !binary |-
25
+ V2VkLCAwNCBBcHIgMjAxMiAyMzo1NzozMyBHTVQ=
26
+ !binary "TGFzdC1Nb2RpZmllZA==":
27
+ - !binary |-
28
+ TW9uLCAyOCBTZXAgMTk3MCAwNjowMDowMCBHTVQ=
29
+ !binary "UDNw":
30
+ - !binary |-
31
+ Q1A9Ik5PSSBDVVIgQURNIE9VUiBOT1IgU1RBIE5JRCI=
32
+ !binary "U2VydmVy":
33
+ - !binary |-
34
+ bmdpbngvMS4wLjQ=
35
+ !binary "Q29udGVudC1MZW5ndGg=":
36
+ - !binary |-
37
+ NDM=
38
+ !binary "Q29ubmVjdGlvbg==":
39
+ - !binary |-
40
+ a2VlcC1hbGl2ZQ==
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |-
44
+ R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAICTAEAOw==
45
+ http_version:
46
+ recorded_at: Wed, 04 Apr 2012 23:57:33 GMT
47
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.hubapi.com/events/v1/events?access_token=demooooo-oooo-oooo-oooo-oooooooooooo&max=5&portalId=62515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Thu, 05 Apr 2012 07:46:59 GMT
23
+ Content-Type:
24
+ - application/json;charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '[{"createDate":1333085425000,"description":"Atom Updated Atom-Powered
34
+ Robots Run Amok","eventType":"iReach Distribution","portalId":62515,"url":"","createdBy":"api"},{"createDate":1333009289000,"description":"asdf","eventType":"iReach
35
+ Distribution","portalId":62515,"url":"","createdBy":"api"},{"createDate":1332914725000,"description":"asdf","eventType":"iReach
36
+ Distribution","portalId":62515,"url":"","createdBy":"api"},{"createDate":1332914324000,"description":"asdf","eventType":"iReach
37
+ Distribution","portalId":62515,"url":"","createdBy":"api"},{"createDate":1332837364000,"description":"k;","eventType":"iReach
38
+ Distribution","portalId":62515,"url":"","createdBy":"api"}]'
39
+ http_version:
40
+ recorded_at: Thu, 05 Apr 2012 07:47:00 GMT
41
+ recorded_with: VCR 2.0.1