hubspot 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hubspot.rb +53 -4
  3. data/lib/hubspot/api/transaction_email/single_send.rb +37 -0
  4. data/lib/hubspot/delivery_method.rb +18 -0
  5. data/lib/hubspot/errors.rb +21 -0
  6. data/lib/hubspot/http_request.rb +44 -0
  7. data/lib/hubspot/http_response.rb +31 -0
  8. data/lib/hubspot/mailer.rb +18 -0
  9. data/lib/hubspot/object.rb +33 -0
  10. data/lib/hubspot/railtie.rb +13 -0
  11. data/lib/hubspot/transaction_email/delivery_method.rb +17 -0
  12. data/lib/hubspot/transaction_email/mailer.rb +12 -0
  13. data/lib/hubspot/version.rb +1 -1
  14. metadata +245 -158
  15. data/MIT-LICENSE +0 -20
  16. data/README.rdoc +0 -158
  17. data/Rakefile +0 -38
  18. data/app/helpers/hubspot_helper.rb +0 -17
  19. data/app/models/hubspot/base.rb +0 -40
  20. data/app/models/hubspot/blog.rb +0 -35
  21. data/app/models/hubspot/blogs/blog_association.rb +0 -35
  22. data/app/models/hubspot/blogs/comment.rb +0 -5
  23. data/app/models/hubspot/blogs/post.rb +0 -12
  24. data/app/models/hubspot/blogs/posts/comment.rb +0 -23
  25. data/app/models/hubspot/connection.rb +0 -46
  26. data/app/models/hubspot/event.rb +0 -39
  27. data/app/models/hubspot/keyword.rb +0 -49
  28. data/app/models/hubspot/lead.rb +0 -26
  29. data/app/models/hubspot/performable/event.rb +0 -67
  30. data/lib/hubspot/action_controller_extensions.rb +0 -15
  31. data/lib/hubspot/engine.rb +0 -30
  32. data/lib/tasks/hubspot_tasks.rake +0 -4
  33. data/test/dummy/README.rdoc +0 -261
  34. data/test/dummy/Rakefile +0 -7
  35. data/test/dummy/app/assets/javascripts/application.js +0 -15
  36. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  37. data/test/dummy/app/controllers/application_controller.rb +0 -3
  38. data/test/dummy/app/helpers/application_helper.rb +0 -2
  39. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  40. data/test/dummy/config.ru +0 -4
  41. data/test/dummy/config/application.rb +0 -56
  42. data/test/dummy/config/boot.rb +0 -10
  43. data/test/dummy/config/database.yml +0 -25
  44. data/test/dummy/config/environment.rb +0 -5
  45. data/test/dummy/config/environments/development.rb +0 -37
  46. data/test/dummy/config/environments/production.rb +0 -67
  47. data/test/dummy/config/environments/test.rb +0 -37
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  49. data/test/dummy/config/initializers/inflections.rb +0 -15
  50. data/test/dummy/config/initializers/mime_types.rb +0 -5
  51. data/test/dummy/config/initializers/secret_token.rb +0 -7
  52. data/test/dummy/config/initializers/session_store.rb +0 -8
  53. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  54. data/test/dummy/config/locales/en.yml +0 -5
  55. data/test/dummy/config/routes.rb +0 -58
  56. data/test/dummy/db/test.sqlite3 +0 -0
  57. data/test/dummy/log/test.log +0 -2326
  58. data/test/dummy/public/404.html +0 -26
  59. data/test/dummy/public/422.html +0 -26
  60. data/test/dummy/public/500.html +0 -25
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +0 -6
  63. data/test/fixtures/vcr_cassettes/blog-comments.yml +0 -74
  64. data/test/fixtures/vcr_cassettes/blog-find.yml +0 -36
  65. data/test/fixtures/vcr_cassettes/blog-posts.yml +0 -75
  66. data/test/fixtures/vcr_cassettes/blogs-list.yml +0 -39
  67. data/test/fixtures/vcr_cassettes/event-create.yml +0 -36
  68. data/test/fixtures/vcr_cassettes/event-record.yml +0 -47
  69. data/test/fixtures/vcr_cassettes/events-list.yml +0 -41
  70. data/test/fixtures/vcr_cassettes/keyword-create.yml +0 -36
  71. data/test/fixtures/vcr_cassettes/keywords-list.yml +0 -385
  72. data/test/fixtures/vcr_cassettes/lead-find.yml +0 -103
  73. data/test/fixtures/vcr_cassettes/lead-update.yml +0 -239
  74. data/test/fixtures/vcr_cassettes/leads-list.yml +0 -190
  75. data/test/fixtures/vcr_cassettes/post-comments.yml +0 -72
  76. data/test/fixtures/vcr_cassettes/post-find.yml +0 -39
  77. data/test/hubspot_test.rb +0 -5
  78. data/test/test_helper.rb +0 -22
  79. data/test/unit/blog_test.rb +0 -37
  80. data/test/unit/event_test.rb +0 -21
  81. data/test/unit/keyword_test.rb +0 -22
  82. data/test/unit/lead_test.rb +0 -31
  83. data/test/unit/performable_event_test.rb +0 -22
  84. data/test/unit/post_test.rb +0 -20
@@ -1,26 +0,0 @@
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>
@@ -1,26 +0,0 @@
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>
@@ -1,25 +0,0 @@
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
@@ -1,6 +0,0 @@
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'
@@ -1,74 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&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?hapikey=demo&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
@@ -1,36 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&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
@@ -1,75 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/blog/v1/0d61e4ca-e395-4c1c-8766-afaa48bf68db.json?hapikey=demo&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?hapikey=demo&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
@@ -1,39 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/blog/v1/list.json?hapikey=demo&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
@@ -1,36 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
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
- 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
@@ -1,47 +0,0 @@
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
@@ -1,41 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.hubapi.com/events/v1/events?hapikey=demo&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