impermium 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/.gitignore +5 -0
  2. data/.rspec +1 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/MIT-LICENSE.txt +20 -0
  6. data/README.md +118 -0
  7. data/Rakefile +7 -0
  8. data/impermium.gemspec +31 -0
  9. data/lib/faraday/raise_4xx.rb +18 -0
  10. data/lib/impermium/client.rb +57 -0
  11. data/lib/impermium/configuration.rb +44 -0
  12. data/lib/impermium/content/blog_post.rb +38 -0
  13. data/lib/impermium/content/bookmark.rb +47 -0
  14. data/lib/impermium/content/comment.rb +38 -0
  15. data/lib/impermium/content/connection.rb +42 -0
  16. data/lib/impermium/content/listing.rb +37 -0
  17. data/lib/impermium/content.rb +15 -0
  18. data/lib/impermium/errors.rb +25 -0
  19. data/lib/impermium/user/account.rb +50 -0
  20. data/lib/impermium/user/profile.rb +35 -0
  21. data/lib/impermium/user.rb +9 -0
  22. data/lib/impermium/version.rb +3 -0
  23. data/lib/impermium.rb +20 -0
  24. data/spec/.gitignore +1 -0
  25. data/spec/cassettes/content_API_section/blog_post_object/blog_post_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  26. data/spec/cassettes/content_API_section/blog_post_object/blog_post_analyst_feedback_method/missing_arguments/missing_blog_post_id.yml +42 -0
  27. data/spec/cassettes/content_API_section/blog_post_object/blog_post_analyst_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  28. data/spec/cassettes/content_API_section/blog_post_object/blog_post_analyst_feedback_method/successful_request.yml +38 -0
  29. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_blog_post_id.yml +43 -0
  30. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_blog_post_permalink.yml +43 -0
  31. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_blog_url.yml +43 -0
  32. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_content.yml +42 -0
  33. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_enduser_ip.yml +43 -0
  34. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/missing_arguments/missing_user_id.yml +43 -0
  35. data/spec/cassettes/content_API_section/blog_post_object/blog_post_method/successful_blog_post_request.yml +39 -0
  36. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  37. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/missing_arguments/missing_blog_post_id.yml +42 -0
  38. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  39. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  40. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  41. data/spec/cassettes/content_API_section/blog_post_object/blog_post_user_feedback_method/successful_request.yml +38 -0
  42. data/spec/cassettes/content_API_section/bookmark_object/bookmark_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  43. data/spec/cassettes/content_API_section/bookmark_object/bookmark_analyst_feedback_method/missing_arguments/missing_bookmark_id.yml +42 -0
  44. data/spec/cassettes/content_API_section/bookmark_object/bookmark_analyst_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  45. data/spec/cassettes/content_API_section/bookmark_object/bookmark_analyst_feedback_method/successful_request.yml +38 -0
  46. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/missing_arguments/missing_bookmark_id.yml +42 -0
  47. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/missing_arguments/missing_bookmark_url.yml +42 -0
  48. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/missing_arguments/missing_enduser_ip.yml +42 -0
  49. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/missing_arguments/missing_like_value.yml +42 -0
  50. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/missing_arguments/missing_user_id.yml +42 -0
  51. data/spec/cassettes/content_API_section/bookmark_object/bookmark_like_method/successful_request.yml +38 -0
  52. data/spec/cassettes/content_API_section/bookmark_object/bookmark_method/missing_arguments/missing_bookmark_id.yml +42 -0
  53. data/spec/cassettes/content_API_section/bookmark_object/bookmark_method/missing_arguments/missing_bookmark_url.yml +42 -0
  54. data/spec/cassettes/content_API_section/bookmark_object/bookmark_method/missing_arguments/missing_enduser_ip.yml +42 -0
  55. data/spec/cassettes/content_API_section/bookmark_object/bookmark_method/missing_arguments/missing_user_id.yml +42 -0
  56. data/spec/cassettes/content_API_section/bookmark_object/bookmark_method/successful_request.yml +38 -0
  57. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  58. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/missing_arguments/missing_bookmark_id.yml +42 -0
  59. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  60. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  61. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  62. data/spec/cassettes/content_API_section/bookmark_object/bookmark_user_feedback_method/successful_request.yml +38 -0
  63. data/spec/cassettes/content_API_section/comment_object/comment_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  64. data/spec/cassettes/content_API_section/comment_object/comment_analyst_feedback_method/missing_arguments/missing_comment_id.yml +42 -0
  65. data/spec/cassettes/content_API_section/comment_object/comment_analyst_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  66. data/spec/cassettes/content_API_section/comment_object/comment_analyst_feedback_method/successful_request.yml +38 -0
  67. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_article_permalink.yml +43 -0
  68. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_comment_id.yml +42 -0
  69. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_comment_permalink.yml +43 -0
  70. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_content.yml +42 -0
  71. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_enduser_ip.yml +43 -0
  72. data/spec/cassettes/content_API_section/comment_object/comment_method/missing_arguments/missing_user_id.yml +43 -0
  73. data/spec/cassettes/content_API_section/comment_object/comment_method/successful_request.yml +39 -0
  74. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  75. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/missing_arguments/missing_comment_id.yml +42 -0
  76. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  77. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  78. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  79. data/spec/cassettes/content_API_section/comment_object/comment_user_feedback_method/successful_request.yml +38 -0
  80. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/missing_arguments/invalid_connection_type_value.yml +42 -0
  81. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  82. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/missing_arguments/missing_connection_id.yml +42 -0
  83. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/missing_arguments/missing_connection_type.yml +42 -0
  84. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  85. data/spec/cassettes/content_API_section/connection_object/connection_analyst_feedback_method/successful_request.yml +38 -0
  86. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/invalid_connection_type_value.yml +42 -0
  87. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/invalid_operation_value.yml +38 -0
  88. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/missing_connection_id.yml +42 -0
  89. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/missing_connection_type.yml +42 -0
  90. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/missing_enduser_ip.yml +42 -0
  91. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/missing_requester_user_id.yml +42 -0
  92. data/spec/cassettes/content_API_section/connection_object/connection_method/missing_arguments/missing_responder_user_id.yml +42 -0
  93. data/spec/cassettes/content_API_section/connection_object/connection_method/successful_follow_connection_request.yml +38 -0
  94. data/spec/cassettes/content_API_section/connection_object/connection_method/successful_follow_connection_response.yml +38 -0
  95. data/spec/cassettes/content_API_section/connection_object/connection_method/successful_friend_connection_request.yml +38 -0
  96. data/spec/cassettes/content_API_section/connection_object/connection_method/successful_friend_connection_response.yml +38 -0
  97. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/invalid_connection_type_value.yml +42 -0
  98. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  99. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/missing_connection_id.yml +42 -0
  100. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/missing_connection_type.yml +42 -0
  101. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  102. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  103. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  104. data/spec/cassettes/content_API_section/connection_object/connection_user_feedback_method/successful_request.yml +38 -0
  105. data/spec/cassettes/content_API_section/listing_object/listing_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  106. data/spec/cassettes/content_API_section/listing_object/listing_analyst_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  107. data/spec/cassettes/content_API_section/listing_object/listing_analyst_feedback_method/missing_arguments/missing_listing_id.yml +42 -0
  108. data/spec/cassettes/content_API_section/listing_object/listing_analyst_feedback_method/successful_request.yml +38 -0
  109. data/spec/cassettes/content_API_section/listing_object/listing_method/missing_arguments/missing_content.yml +42 -0
  110. data/spec/cassettes/content_API_section/listing_object/listing_method/missing_arguments/missing_enduser_ip.yml +42 -0
  111. data/spec/cassettes/content_API_section/listing_object/listing_method/missing_arguments/missing_listing_id.yml +42 -0
  112. data/spec/cassettes/content_API_section/listing_object/listing_method/missing_arguments/missing_listing_permalink.yml +42 -0
  113. data/spec/cassettes/content_API_section/listing_object/listing_method/missing_arguments/missing_user_id.yml +42 -0
  114. data/spec/cassettes/content_API_section/listing_object/listing_method/successful_request.yml +38 -0
  115. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  116. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  117. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/missing_arguments/missing_listing_id.yml +42 -0
  118. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  119. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  120. data/spec/cassettes/content_API_section/listing_object/listing_user_feedback_method/successful_request.yml +38 -0
  121. data/spec/cassettes/user_API_section/account_object/account_analyst_feedback_method/missing_arguments/missing_analyst_id.yml +42 -0
  122. data/spec/cassettes/user_API_section/account_object/account_analyst_feedback_method/missing_arguments/missing_user_id.yml +42 -0
  123. data/spec/cassettes/user_API_section/account_object/account_analyst_feedback_method/successful_account_analyst_feedback_method_request.yml +38 -0
  124. data/spec/cassettes/user_API_section/account_object/account_attempt_method/missing_arguments.yml +42 -0
  125. data/spec/cassettes/user_API_section/account_object/account_attempt_method/successful_account_attempt_request.yml +38 -0
  126. data/spec/cassettes/user_API_section/account_object/account_login_method/missing_arguments/missing_enduser_ip.yml +42 -0
  127. data/spec/cassettes/user_API_section/account_object/account_login_method/missing_arguments/missing_user_id.yml +42 -0
  128. data/spec/cassettes/user_API_section/account_object/account_login_method/successful_account_login_request.yml +38 -0
  129. data/spec/cassettes/user_API_section/account_object/account_method/missing_arguments/missing_enduser_ip.yml +42 -0
  130. data/spec/cassettes/user_API_section/account_object/account_method/missing_arguments/missing_user_id.yml +42 -0
  131. data/spec/cassettes/user_API_section/account_object/account_method/successful_account_method_request.yml +38 -0
  132. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  133. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  134. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  135. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  136. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/missing_arguments/missing_user_id.yml +42 -0
  137. data/spec/cassettes/user_API_section/account_object/account_user_feedback_method/successful_request.yml +38 -0
  138. data/spec/cassettes/user_API_section/profile_object/profile_analyst_feedback_method/missing_params/missing_analyst_id.yml +42 -0
  139. data/spec/cassettes/user_API_section/profile_object/profile_analyst_feedback_method/missing_params/missing_desired_result.yml +42 -0
  140. data/spec/cassettes/user_API_section/profile_object/profile_analyst_feedback_method/missing_params/missing_profile_id.yml +42 -0
  141. data/spec/cassettes/user_API_section/profile_object/profile_analyst_feedback_method/successful_request.yml +38 -0
  142. data/spec/cassettes/user_API_section/profile_object/profile_method/missing_arguments/missing_enduser_ip.yml +42 -0
  143. data/spec/cassettes/user_API_section/profile_object/profile_method/missing_arguments/missing_profile_id.yml +42 -0
  144. data/spec/cassettes/user_API_section/profile_object/profile_method/missing_arguments/missing_user_id.yml +42 -0
  145. data/spec/cassettes/user_API_section/profile_object/profile_method/successful_request.yml +38 -0
  146. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/missing_arguments/invalid_reporter_user_type.yml +38 -0
  147. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/missing_arguments/missing_desired_result.yml +42 -0
  148. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/missing_arguments/missing_profile_id.yml +42 -0
  149. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/missing_arguments/missing_reporter_ip.yml +42 -0
  150. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/missing_arguments/missing_reporter_user_id.yml +42 -0
  151. data/spec/cassettes/user_API_section/profile_object/profile_user_feedback_method/successful_request.yml +38 -0
  152. data/spec/configuration.yml.sample +3 -0
  153. data/spec/impermium/client_spec.rb +67 -0
  154. data/spec/impermium/content/blog_post_spec.rb +173 -0
  155. data/spec/impermium/content/bookmark_spec.rb +205 -0
  156. data/spec/impermium/content/comment_spec.rb +178 -0
  157. data/spec/impermium/content/connection_spec.rb +257 -0
  158. data/spec/impermium/content/listing_spec.rb +169 -0
  159. data/spec/impermium/user/account_spec.rb +184 -0
  160. data/spec/impermium/user/profile_spec.rb +154 -0
  161. data/spec/spec_helper.rb +32 -0
  162. metadata +433 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/blog_post/user_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"reporter_user_id":null,"reporter_user_type":"MODERATOR","reporter_ip":"1.1.1.1","blog_post_id":"just-a-post#984721","desired_result":{"spam_classifier":{"label":"notspam"}}}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:45 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''reporter_user_id''
39
+ could not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:45 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/blog_post/user_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"reporter_user_id":"r3p0rt3r","reporter_user_type":"ENDUSER","reporter_ip":"1.1.1.1","blog_post_id":"just-a-post#984721","desired_result":{"spam_classifier":{"label":"notspam"}}}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:48 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"timestamp":"20120306111648Z","response_id":"CLID-1253-EVENTS2001-0306111648-DDACD1CC-677D-11E1-A87B-014AFFBDFCB2"}'
36
+ http_version:
37
+ recorded_at: Tue, 06 Mar 2012 11:16:48 GMT
38
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/analyst_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"analyst_id":null,"bookmark_id":"b00km4rk_ID","desired_result":{"spam_classifier":{"label":"notspam"}}}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:55 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''analyst_id'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:55 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/analyst_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"analyst_id":"4n4l1s7_ID","bookmark_id":null,"desired_result":{"spam_classifier":{"label":"notspam"}}}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:56 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''bookmark_id'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:56 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/analyst_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"analyst_id":"4n4l1s7_ID","bookmark_id":"b00km4rk_ID","desired_result":null}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:56 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''desired_result'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:57 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/analyst_feedback/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"analyst_id":"4n4l1s7_ID","bookmark_id":"b00km4rk_ID","desired_result":{"spam_classifier":{"label":"notspam"}}}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:57 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"timestamp":"20120306111657Z","response_id":"CLID-1253-EVENTS2001-0306111657-E328BE0E-677D-11E1-8BCF-014AFFBDFCB2"}'
36
+ http_version:
37
+ recorded_at: Tue, 06 Mar 2012 11:16:57 GMT
38
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":null,"bookmark_url":"http://example.com/category/book/marks/33?query=whi","like_value":"1","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:52 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''bookmark_id'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:52 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":null,"like_value":"1","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:53 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''bookmark_url'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:53 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","like_value":"1","enduser_ip":null}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:54 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''enduser_ip'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:54 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","like_value":null,"enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:53 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''like_value'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:54 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":null,"bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","like_value":"1","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:52 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''user_id'' could not
39
+ be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:52 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/like/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","like_value":"1","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:55 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! '{"timestamp":"20120306111655Z","spam_classifier":{"score":0,"label":"notspam"},"response_id":"CLID-1253-EVENTS2001-0306111655-E1AF5F1A-677D-11E1-A87B-014AFFBDFCB2"}'
36
+ http_version:
37
+ recorded_at: Tue, 06 Mar 2012 11:16:55 GMT
38
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":null,"bookmark_url":"http://example.com/category/book/marks/33?query=whi","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:49 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''bookmark_id'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:49 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":null,"enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:50 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''bookmark_url'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:50 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":"whi777","bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","enduser_ip":null}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:50 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''enduser_ip'' could
39
+ not be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:51 GMT
42
+ recorded_with: VCR 2.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-test.impermium.com/bookmark/3.1/REMOVED-API-KEY-VALUE/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"user_id":null,"bookmark_id":"b00km4rk_ID","bookmark_url":"http://example.com/category/book/marks/33?query=whi","enduser_ip":"2.2.2.2"}'
9
+ headers:
10
+ Http-User-Agent:
11
+ - Impermium Ruby Gem
12
+ Http-Accept:
13
+ - application/json
14
+ Content-Type:
15
+ - application/json
16
+ Accept:
17
+ - ! '*/*'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Mar 2012 11:16:48 GMT
27
+ Server:
28
+ - Apache/2.2.14 (Ubuntu)
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":400,"hostname":"events2001.impermium.com","message":"Unable
38
+ to verify the schema of the event: (Required element ''user_id'' could not
39
+ be found)"}'
40
+ http_version:
41
+ recorded_at: Tue, 06 Mar 2012 11:16:49 GMT
42
+ recorded_with: VCR 2.0.0