oi-api-ruby 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/.env.sample +2 -0
  3. data/.gitignore +3 -0
  4. data/.rspec +4 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +35 -0
  9. data/Rakefile +9 -0
  10. data/api_issues.md +89 -0
  11. data/lib/oi_api.rb +12 -0
  12. data/lib/oi_api/client.rb +98 -0
  13. data/lib/oi_api/client/advertisers.rb +31 -0
  14. data/lib/oi_api/client/auto_responders.rb +35 -0
  15. data/lib/oi_api/client/balances.rb +15 -0
  16. data/lib/oi_api/client/cards.rb +33 -0
  17. data/lib/oi_api/client/charges.rb +15 -0
  18. data/lib/oi_api/client/data_transfers.rb +31 -0
  19. data/lib/oi_api/client/offers.rb +32 -0
  20. data/lib/oi_api/client/reports.rb +15 -0
  21. data/lib/oi_api/client/subscriptions.rb +23 -0
  22. data/lib/oi_api/configuration.rb +50 -0
  23. data/lib/oi_api/lookup_tables.rb +42 -0
  24. data/lib/oi_api/version.rb +3 -0
  25. data/oi-api-ruby.gemspec +31 -0
  26. data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_200_OK.yml +157 -0
  27. data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +157 -0
  28. data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_the_resource.yml +157 -0
  29. data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/when_advertiser_id_not_found/returns_404.yml +77 -0
  30. data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/when_advertiser_id_not_found/returns_not_found_error_message.yml +117 -0
  31. data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_200_OK.yml +157 -0
  32. data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +237 -0
  33. data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_all_resources.yml +237 -0
  34. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +117 -0
  35. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +77 -0
  36. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +77 -0
  37. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_201_created.yml +118 -0
  38. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_a_success_message.yml +78 -0
  39. data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_a_success_status.yml +118 -0
  40. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/deletes_a_data_transfer.yml +153 -0
  41. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_200_OK.yml +116 -0
  42. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_the_correct_message.yml +196 -0
  43. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_the_correct_status.yml +116 -0
  44. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/when_advertiser_not_found/returns_404.yml +77 -0
  45. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/when_advertiser_not_found/returns_not_found_error_message.yml +77 -0
  46. data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/when_advertiser_not_found/returns_not_found_error_status.yml +77 -0
  47. data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_200_OK.yml +42 -0
  48. data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +42 -0
  49. data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_all_resources.yml +42 -0
  50. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +116 -0
  51. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +156 -0
  52. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +156 -0
  53. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_200_OK.yml +155 -0
  54. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +155 -0
  55. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +195 -0
  56. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/when_advertiser_not_found/returns_404.yml +117 -0
  57. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/when_advertiser_not_found/returns_error_status.yml +77 -0
  58. data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/when_advertiser_not_found/returns_not_found_error_message.yml +77 -0
  59. data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_200_OK.yml +593 -0
  60. data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +593 -0
  61. data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_all_resources.yml +593 -0
  62. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_200_OK.yml +273 -0
  63. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +273 -0
  64. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_all_resources.yml +273 -0
  65. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_200_OK.yml +593 -0
  66. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +673 -0
  67. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_all_resources.yml +516 -0
  68. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_200_OK.yml +273 -0
  69. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +354 -0
  70. data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_all_resources.yml +354 -0
  71. data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_200_OK.yml +78 -0
  72. data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +78 -0
  73. data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_all_resources.yml +78 -0
  74. data/spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml +78 -0
  75. data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_200_OK.yml +117 -0
  76. data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +117 -0
  77. data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_the_resource.yml +117 -0
  78. data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/when_card_id_not_found/returns_404.yml +79 -0
  79. data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/when_card_id_not_found/returns_not_found_error_message.yml +79 -0
  80. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +80 -0
  81. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +80 -0
  82. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +80 -0
  83. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_201_created.yml +80 -0
  84. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_a_success_message.yml +80 -0
  85. data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_a_success_status.yml +80 -0
  86. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +117 -0
  87. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +117 -0
  88. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +117 -0
  89. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_200_OK.yml +117 -0
  90. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +117 -0
  91. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +117 -0
  92. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml +79 -0
  93. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_error_status.yml +79 -0
  94. data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_not_found_error_message.yml +79 -0
  95. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +352 -0
  96. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +352 -0
  97. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +352 -0
  98. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_201_created.yml +352 -0
  99. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_a_success_message.yml +272 -0
  100. data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_a_success_status.yml +352 -0
  101. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_200_OK.yml +393 -0
  102. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +393 -0
  103. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_the_resource.yml +472 -0
  104. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/when_data_transfer_id_not_found/returns_404.yml +115 -0
  105. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/when_data_transfer_id_not_found/returns_not_found_error_message.yml +236 -0
  106. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_200_OK.yml +354 -0
  107. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +434 -0
  108. data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_all_resources.yml +434 -0
  109. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/deletes_a_data_transfer.yml +428 -0
  110. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_200_OK.yml +390 -0
  111. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_the_correct_message.yml +310 -0
  112. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_the_correct_status.yml +390 -0
  113. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/when_data_transfer_not_found/returns_404.yml +115 -0
  114. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/when_data_transfer_not_found/returns_not_found_error_message.yml +195 -0
  115. data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/when_data_transfer_not_found/returns_not_found_error_status.yml +115 -0
  116. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +390 -0
  117. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +390 -0
  118. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +390 -0
  119. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_200_OK.yml +389 -0
  120. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +389 -0
  121. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +349 -0
  122. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/when_data_transfer_not_found/returns_404.yml +274 -0
  123. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/when_data_transfer_not_found/returns_error_status.yml +234 -0
  124. data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/when_data_transfer_not_found/returns_not_found_error_message.yml +234 -0
  125. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +195 -0
  126. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +195 -0
  127. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +195 -0
  128. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_201_created.yml +196 -0
  129. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_a_success_message.yml +156 -0
  130. data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_a_success_status.yml +196 -0
  131. data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_200_OK.yml +246 -0
  132. data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +246 -0
  133. data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_the_resource.yml +284 -0
  134. data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/when_offer_id_not_found/returns_404.yml +115 -0
  135. data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/when_offer_id_not_found/returns_not_found_error_message.yml +195 -0
  136. data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_200_OK.yml +416 -0
  137. data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +457 -0
  138. data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_all_resources.yml +457 -0
  139. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/bad_request/returns_400_bad_request_with_invalid_params.yml +194 -0
  140. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +234 -0
  141. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +234 -0
  142. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_200_OK.yml +234 -0
  143. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +234 -0
  144. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +315 -0
  145. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/when_offer_not_found/returns_404.yml +154 -0
  146. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/when_offer_not_found/returns_error_status.yml +114 -0
  147. data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/when_offer_not_found/returns_not_found_error_message.yml +114 -0
  148. data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_200_OK.yml +46 -0
  149. data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +46 -0
  150. data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_all_resources.yml +46 -0
  151. data/spec/cassettes/OiApi_Client_Reports/_reports/returns_a_report_summary.yml +46 -0
  152. data/spec/cassettes/OiApi_Client_Reports/_reports_with_query_params/retrieves_the_last_60_days_of_data.yml +42 -0
  153. data/spec/oi_api/client/advertisers_spec.rb +86 -0
  154. data/spec/oi_api/client/auto_responders_spec.rb +55 -0
  155. data/spec/oi_api/client/balances_spec.rb +22 -0
  156. data/spec/oi_api/client/cards_spec.rb +60 -0
  157. data/spec/oi_api/client/charges_spec.rb +9 -0
  158. data/spec/oi_api/client/data_transfers_spec.rb +95 -0
  159. data/spec/oi_api/client/offers_spec.rb +84 -0
  160. data/spec/oi_api/client/reports_spec.rb +31 -0
  161. data/spec/oi_api/client/subscriptions_spec.rb +11 -0
  162. data/spec/oi_api_spec.rb +49 -0
  163. data/spec/shared_examples_for_delete_resource.rb +37 -0
  164. data/spec/shared_examples_for_get_resource.rb +33 -0
  165. data/spec/shared_examples_for_get_resources.rb +15 -0
  166. data/spec/shared_examples_for_post_resource.rb +31 -0
  167. data/spec/shared_examples_for_put_resource.rb +46 -0
  168. data/spec/spec_helper.rb +60 -0
  169. data/spec/support/advertisers_factory.rb +22 -0
  170. data/spec/support/auto_responders_factory.rb +27 -0
  171. data/spec/support/balances_factory.rb +12 -0
  172. data/spec/support/cards_factory.rb +34 -0
  173. data/spec/support/charges_factory.rb +16 -0
  174. data/spec/support/data_transfers_factory.rb +34 -0
  175. data/spec/support/factory.rb +48 -0
  176. data/spec/support/offers_factory.rb +53 -0
  177. data/spec/support/reports_factory.rb +12 -0
  178. data/spec/support/subscriptions_factory.rb +16 -0
  179. data/spec_output.txt +341 -0
  180. metadata +487 -0
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - OiApiRuby Gem 0.1.1
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Fri, 24 Apr 2015 22:36:36 GMT
21
+ Server:
22
+ - Apache/2.2.15 (CentOS)
23
+ Vary:
24
+ - Accept,Cookie
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ Allow:
28
+ - GET, POST, HEAD, OPTIONS
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: UTF-8
37
+ string: "[]"
38
+ http_version:
39
+ recorded_at: Fri, 24 Apr 2015 22:37:38 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ Content-Type:
48
+ - application/json
49
+ User-Agent:
50
+ - OiApiRuby Gem 0.1.1
51
+ response:
52
+ status:
53
+ code: 200
54
+ message: OK
55
+ headers:
56
+ Date:
57
+ - Fri, 24 Apr 2015 22:36:36 GMT
58
+ Server:
59
+ - Apache/2.2.15 (CentOS)
60
+ Vary:
61
+ - Accept,Cookie
62
+ X-Frame-Options:
63
+ - SAMEORIGIN
64
+ Allow:
65
+ - GET, POST, HEAD, OPTIONS
66
+ Connection:
67
+ - close
68
+ Transfer-Encoding:
69
+ - chunked
70
+ Content-Type:
71
+ - application/json
72
+ body:
73
+ encoding: UTF-8
74
+ string: "[]"
75
+ http_version:
76
+ recorded_at: Fri, 24 Apr 2015 22:37:39 GMT
77
+ - request:
78
+ method: get
79
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/datatransfers/99999999999999/
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ''
83
+ headers:
84
+ Content-Type:
85
+ - application/json
86
+ User-Agent:
87
+ - OiApiRuby Gem 0.1.1
88
+ response:
89
+ status:
90
+ code: 400
91
+ message: BAD REQUEST
92
+ headers:
93
+ Date:
94
+ - Fri, 24 Apr 2015 22:36:37 GMT
95
+ Server:
96
+ - Apache/2.2.15 (CentOS)
97
+ Vary:
98
+ - Accept,Cookie
99
+ X-Frame-Options:
100
+ - SAMEORIGIN
101
+ Allow:
102
+ - GET, PUT, DELETE, HEAD, OPTIONS
103
+ Connection:
104
+ - close
105
+ Transfer-Encoding:
106
+ - chunked
107
+ Content-Type:
108
+ - application/json
109
+ body:
110
+ encoding: UTF-8
111
+ string: '{"status": "Retrieve Failed", "message": "No permission to view data
112
+ transfer for offer."}'
113
+ http_version:
114
+ recorded_at: Fri, 24 Apr 2015 22:37:39 GMT
115
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,236 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - OiApiRuby Gem 0.1.1
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Fri, 24 Apr 2015 22:36:34 GMT
21
+ Server:
22
+ - Apache/2.2.15 (CentOS)
23
+ Vary:
24
+ - Accept,Cookie
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ Allow:
28
+ - GET, POST, HEAD, OPTIONS
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: UTF-8
37
+ string: '[{"id": 40375, "name": "new advertiser e4eb80e0baf42bae4fd746a70fec130d",
38
+ "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:30",
39
+ "modify_date": "2015-04-24T18:37:30"}, {"id": 40376, "name": "new advertiser
40
+ f96c9c40068bcd9d7019d001ca20fed0", "status_id": 1, "category_id": 1010, "key":
41
+ "", "create_date": "2015-04-24T18:37:32", "modify_date": "2015-04-24T18:37:32"},
42
+ {"id": 40377, "name": "new advertiser 7301ecd70d82e0638310c0506f153a9b", "status_id":
43
+ 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:34", "modify_date":
44
+ "2015-04-24T18:37:34"}]'
45
+ http_version:
46
+ recorded_at: Fri, 24 Apr 2015 22:37:37 GMT
47
+ - request:
48
+ method: delete
49
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40375/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Content-Type:
55
+ - application/json
56
+ User-Agent:
57
+ - OiApiRuby Gem 0.1.1
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Date:
64
+ - Fri, 24 Apr 2015 22:36:35 GMT
65
+ Server:
66
+ - Apache/2.2.15 (CentOS)
67
+ Vary:
68
+ - Accept,Cookie
69
+ X-Frame-Options:
70
+ - SAMEORIGIN
71
+ Allow:
72
+ - GET, PUT, DELETE, HEAD, OPTIONS
73
+ Connection:
74
+ - close
75
+ Transfer-Encoding:
76
+ - chunked
77
+ Content-Type:
78
+ - application/json
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
82
+ deleted"}'
83
+ http_version:
84
+ recorded_at: Fri, 24 Apr 2015 22:37:37 GMT
85
+ - request:
86
+ method: delete
87
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40376/
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ Content-Type:
93
+ - application/json
94
+ User-Agent:
95
+ - OiApiRuby Gem 0.1.1
96
+ response:
97
+ status:
98
+ code: 200
99
+ message: OK
100
+ headers:
101
+ Date:
102
+ - Fri, 24 Apr 2015 22:36:35 GMT
103
+ Server:
104
+ - Apache/2.2.15 (CentOS)
105
+ Vary:
106
+ - Accept,Cookie
107
+ X-Frame-Options:
108
+ - SAMEORIGIN
109
+ Allow:
110
+ - GET, PUT, DELETE, HEAD, OPTIONS
111
+ Connection:
112
+ - close
113
+ Transfer-Encoding:
114
+ - chunked
115
+ Content-Type:
116
+ - application/json
117
+ body:
118
+ encoding: UTF-8
119
+ string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
120
+ deleted"}'
121
+ http_version:
122
+ recorded_at: Fri, 24 Apr 2015 22:37:37 GMT
123
+ - request:
124
+ method: delete
125
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40377/
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ''
129
+ headers:
130
+ Content-Type:
131
+ - application/json
132
+ User-Agent:
133
+ - OiApiRuby Gem 0.1.1
134
+ response:
135
+ status:
136
+ code: 200
137
+ message: OK
138
+ headers:
139
+ Date:
140
+ - Fri, 24 Apr 2015 22:36:35 GMT
141
+ Server:
142
+ - Apache/2.2.15 (CentOS)
143
+ Vary:
144
+ - Accept,Cookie
145
+ X-Frame-Options:
146
+ - SAMEORIGIN
147
+ Allow:
148
+ - GET, PUT, DELETE, HEAD, OPTIONS
149
+ Connection:
150
+ - close
151
+ Transfer-Encoding:
152
+ - chunked
153
+ Content-Type:
154
+ - application/json
155
+ body:
156
+ encoding: UTF-8
157
+ string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
158
+ deleted"}'
159
+ http_version:
160
+ recorded_at: Fri, 24 Apr 2015 22:37:37 GMT
161
+ - request:
162
+ method: get
163
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
164
+ body:
165
+ encoding: US-ASCII
166
+ string: ''
167
+ headers:
168
+ Content-Type:
169
+ - application/json
170
+ User-Agent:
171
+ - OiApiRuby Gem 0.1.1
172
+ response:
173
+ status:
174
+ code: 200
175
+ message: OK
176
+ headers:
177
+ Date:
178
+ - Fri, 24 Apr 2015 22:36:35 GMT
179
+ Server:
180
+ - Apache/2.2.15 (CentOS)
181
+ Vary:
182
+ - Accept,Cookie
183
+ X-Frame-Options:
184
+ - SAMEORIGIN
185
+ Allow:
186
+ - GET, POST, HEAD, OPTIONS
187
+ Connection:
188
+ - close
189
+ Transfer-Encoding:
190
+ - chunked
191
+ Content-Type:
192
+ - application/json
193
+ body:
194
+ encoding: UTF-8
195
+ string: "[]"
196
+ http_version:
197
+ recorded_at: Fri, 24 Apr 2015 22:37:38 GMT
198
+ - request:
199
+ method: get
200
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/datatransfers/99999999999999/
201
+ body:
202
+ encoding: US-ASCII
203
+ string: ''
204
+ headers:
205
+ Content-Type:
206
+ - application/json
207
+ User-Agent:
208
+ - OiApiRuby Gem 0.1.1
209
+ response:
210
+ status:
211
+ code: 400
212
+ message: BAD REQUEST
213
+ headers:
214
+ Date:
215
+ - Fri, 24 Apr 2015 22:36:36 GMT
216
+ Server:
217
+ - Apache/2.2.15 (CentOS)
218
+ Vary:
219
+ - Accept,Cookie
220
+ X-Frame-Options:
221
+ - SAMEORIGIN
222
+ Allow:
223
+ - GET, PUT, DELETE, HEAD, OPTIONS
224
+ Connection:
225
+ - close
226
+ Transfer-Encoding:
227
+ - chunked
228
+ Content-Type:
229
+ - application/json
230
+ body:
231
+ encoding: UTF-8
232
+ string: '{"status": "Retrieve Failed", "message": "No permission to view data
233
+ transfer for offer."}'
234
+ http_version:
235
+ recorded_at: Fri, 24 Apr 2015 22:37:38 GMT
236
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,354 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - OiApiRuby Gem 0.1.1
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Fri, 24 Apr 2015 22:35:15 GMT
21
+ Server:
22
+ - Apache/2.2.15 (CentOS)
23
+ Vary:
24
+ - Accept,Cookie
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ Allow:
28
+ - GET, POST, HEAD, OPTIONS
29
+ Connection:
30
+ - close
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Content-Type:
34
+ - application/json
35
+ body:
36
+ encoding: UTF-8
37
+ string: "[]"
38
+ http_version:
39
+ recorded_at: Fri, 24 Apr 2015 22:36:17 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ Content-Type:
48
+ - application/json
49
+ User-Agent:
50
+ - OiApiRuby Gem 0.1.1
51
+ response:
52
+ status:
53
+ code: 200
54
+ message: OK
55
+ headers:
56
+ Date:
57
+ - Fri, 24 Apr 2015 22:35:15 GMT
58
+ Server:
59
+ - Apache/2.2.15 (CentOS)
60
+ Vary:
61
+ - Accept,Cookie
62
+ X-Frame-Options:
63
+ - SAMEORIGIN
64
+ Allow:
65
+ - GET, POST, HEAD, OPTIONS
66
+ Connection:
67
+ - close
68
+ Transfer-Encoding:
69
+ - chunked
70
+ Content-Type:
71
+ - application/json
72
+ body:
73
+ encoding: UTF-8
74
+ string: "[]"
75
+ http_version:
76
+ recorded_at: Fri, 24 Apr 2015 22:36:18 GMT
77
+ - request:
78
+ method: post
79
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
80
+ body:
81
+ encoding: UTF-8
82
+ string: '{"name":"new advertiser 6499e33066154cacbd9a532c30e3ceb6","status_id":1,"category_id":1010}'
83
+ headers:
84
+ Content-Type:
85
+ - application/json
86
+ User-Agent:
87
+ - OiApiRuby Gem 0.1.1
88
+ response:
89
+ status:
90
+ code: 201
91
+ message: CREATED
92
+ headers:
93
+ Date:
94
+ - Fri, 24 Apr 2015 22:35:16 GMT
95
+ Server:
96
+ - Apache/2.2.15 (CentOS)
97
+ Vary:
98
+ - Accept,Cookie
99
+ X-Frame-Options:
100
+ - SAMEORIGIN
101
+ Allow:
102
+ - GET, POST, HEAD, OPTIONS
103
+ Connection:
104
+ - close
105
+ Transfer-Encoding:
106
+ - chunked
107
+ Content-Type:
108
+ - application/json
109
+ body:
110
+ encoding: UTF-8
111
+ string: '{"status": "Create Successful", "message": "Advertiser successfully
112
+ created", "id": 40350}'
113
+ http_version:
114
+ recorded_at: Fri, 24 Apr 2015 22:36:18 GMT
115
+ - request:
116
+ method: post
117
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
118
+ body:
119
+ encoding: UTF-8
120
+ string: '{"advertiser_id":40350,"name":"Special Product 65c15917af8effe220163dbcb710a369","category_id":1010,"status_id":9,"headline":"Buy
121
+ our product today 4187957e2cb176c1783c59a304086918","body":"Try for FREE for
122
+ a limited time only. This is your one-and-only chance! 77e832d3daecc8382679a0f6c23eabde","cpl_price":1.0,"global_cap":1000,"monthly_cap":300,"daily_cap":10,"image1":"http://www.opt-intelligence.com/images/cats120.png","image2":"http://www.opt-intelligence.com/images/cats88.png","data_points":["EM","FN"],"targeting":{"min_age":18,"max_age":45,"zip":{"include":true,"zip_codes":["14226","10009","10023","11211"]},"gender":"m","country":{"include":true,"countries":["USA"]},"third_party":{}},"comment":"Hello
123
+ there"}'
124
+ headers:
125
+ Content-Type:
126
+ - application/json
127
+ User-Agent:
128
+ - OiApiRuby Gem 0.1.1
129
+ response:
130
+ status:
131
+ code: 201
132
+ message: CREATED
133
+ headers:
134
+ Date:
135
+ - Fri, 24 Apr 2015 22:35:16 GMT
136
+ Server:
137
+ - Apache/2.2.15 (CentOS)
138
+ Vary:
139
+ - Accept,Cookie
140
+ X-Frame-Options:
141
+ - SAMEORIGIN
142
+ Allow:
143
+ - GET, POST, HEAD, OPTIONS
144
+ Connection:
145
+ - close
146
+ Transfer-Encoding:
147
+ - chunked
148
+ Content-Type:
149
+ - application/json
150
+ body:
151
+ encoding: UTF-8
152
+ string: '{"status": "Request Successful", "message": "Offer successfully created",
153
+ "id": 79767}'
154
+ http_version:
155
+ recorded_at: Fri, 24 Apr 2015 22:36:19 GMT
156
+ - request:
157
+ method: post
158
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79767/datatransfers/
159
+ body:
160
+ encoding: UTF-8
161
+ string: '{"name":"DT for Special Product 1 e9626c3b4d7983e3488e64fe0c90790e","status_id":1,"type":"http","offer_id":79767,"dt_info":{"base_url":"http://www.someclientbaseurl.com","method":"POST"},"data_fields":[{"email":"#{EM}"},{"first_name":"#{FN}"},{"last_name":"#{LN}"},{"zip":"#{PO}"},{"gender":"#{G}"}]}'
162
+ headers:
163
+ Content-Type:
164
+ - application/json
165
+ User-Agent:
166
+ - OiApiRuby Gem 0.1.1
167
+ response:
168
+ status:
169
+ code: 200
170
+ message: OK
171
+ headers:
172
+ Date:
173
+ - Fri, 24 Apr 2015 22:35:18 GMT
174
+ Server:
175
+ - Apache/2.2.15 (CentOS)
176
+ Vary:
177
+ - Accept,Cookie
178
+ X-Frame-Options:
179
+ - SAMEORIGIN
180
+ Allow:
181
+ - GET, POST, HEAD, OPTIONS
182
+ Connection:
183
+ - close
184
+ Transfer-Encoding:
185
+ - chunked
186
+ Content-Type:
187
+ - application/json
188
+ body:
189
+ encoding: UTF-8
190
+ string: '{"status": "Create Successful", "id": 90063}'
191
+ http_version:
192
+ recorded_at: Fri, 24 Apr 2015 22:36:20 GMT
193
+ - request:
194
+ method: post
195
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
196
+ body:
197
+ encoding: UTF-8
198
+ string: '{"name":"new advertiser fc2b3cda478d63c71a0310c6f3a85ac6","status_id":1,"category_id":1010}'
199
+ headers:
200
+ Content-Type:
201
+ - application/json
202
+ User-Agent:
203
+ - OiApiRuby Gem 0.1.1
204
+ response:
205
+ status:
206
+ code: 201
207
+ message: CREATED
208
+ headers:
209
+ Date:
210
+ - Fri, 24 Apr 2015 22:35:18 GMT
211
+ Server:
212
+ - Apache/2.2.15 (CentOS)
213
+ Vary:
214
+ - Accept,Cookie
215
+ X-Frame-Options:
216
+ - SAMEORIGIN
217
+ Allow:
218
+ - GET, POST, HEAD, OPTIONS
219
+ Connection:
220
+ - close
221
+ Transfer-Encoding:
222
+ - chunked
223
+ Content-Type:
224
+ - application/json
225
+ body:
226
+ encoding: UTF-8
227
+ string: '{"status": "Create Successful", "message": "Advertiser successfully
228
+ created", "id": 40351}'
229
+ http_version:
230
+ recorded_at: Fri, 24 Apr 2015 22:36:21 GMT
231
+ - request:
232
+ method: post
233
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
234
+ body:
235
+ encoding: UTF-8
236
+ string: '{"advertiser_id":40351,"name":"Special Product 17bd1e89681bb51c065996c671d44785","category_id":1010,"status_id":9,"headline":"Buy
237
+ our product today 2ace98d2c245d32fe1fd6b270d374126","body":"Try for FREE for
238
+ a limited time only. This is your one-and-only chance! e0cc7d9abc0fce2f2eed3e829fd9fc99","cpl_price":1.0,"global_cap":1000,"monthly_cap":300,"daily_cap":10,"image1":"http://www.opt-intelligence.com/images/cats120.png","image2":"http://www.opt-intelligence.com/images/cats88.png","data_points":["EM","FN"],"targeting":{"min_age":18,"max_age":45,"zip":{"include":true,"zip_codes":["14226","10009","10023","11211"]},"gender":"m","country":{"include":true,"countries":["USA"]},"third_party":{}},"comment":"Hello
239
+ there"}'
240
+ headers:
241
+ Content-Type:
242
+ - application/json
243
+ User-Agent:
244
+ - OiApiRuby Gem 0.1.1
245
+ response:
246
+ status:
247
+ code: 201
248
+ message: CREATED
249
+ headers:
250
+ Date:
251
+ - Fri, 24 Apr 2015 22:35:19 GMT
252
+ Server:
253
+ - Apache/2.2.15 (CentOS)
254
+ Vary:
255
+ - Accept,Cookie
256
+ X-Frame-Options:
257
+ - SAMEORIGIN
258
+ Allow:
259
+ - GET, POST, HEAD, OPTIONS
260
+ Connection:
261
+ - close
262
+ Transfer-Encoding:
263
+ - chunked
264
+ Content-Type:
265
+ - application/json
266
+ body:
267
+ encoding: UTF-8
268
+ string: '{"status": "Request Successful", "message": "Offer successfully created",
269
+ "id": 79768}'
270
+ http_version:
271
+ recorded_at: Fri, 24 Apr 2015 22:36:22 GMT
272
+ - request:
273
+ method: post
274
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79768/datatransfers/
275
+ body:
276
+ encoding: UTF-8
277
+ string: '{"name":"DT for Special Product 1 25924d60c9f12618b13ab5f85c998783","status_id":1,"type":"http","offer_id":79768,"dt_info":{"base_url":"http://www.someclientbaseurl.com","method":"POST"},"data_fields":[{"email":"#{EM}"},{"first_name":"#{FN}"},{"last_name":"#{LN}"},{"zip":"#{PO}"},{"gender":"#{G}"}]}'
278
+ headers:
279
+ Content-Type:
280
+ - application/json
281
+ User-Agent:
282
+ - OiApiRuby Gem 0.1.1
283
+ response:
284
+ status:
285
+ code: 200
286
+ message: OK
287
+ headers:
288
+ Date:
289
+ - Fri, 24 Apr 2015 22:35:20 GMT
290
+ Server:
291
+ - Apache/2.2.15 (CentOS)
292
+ Vary:
293
+ - Accept,Cookie
294
+ X-Frame-Options:
295
+ - SAMEORIGIN
296
+ Allow:
297
+ - GET, POST, HEAD, OPTIONS
298
+ Connection:
299
+ - close
300
+ Transfer-Encoding:
301
+ - chunked
302
+ Content-Type:
303
+ - application/json
304
+ body:
305
+ encoding: UTF-8
306
+ string: '{"status": "Create Successful", "id": 90064}'
307
+ http_version:
308
+ recorded_at: Fri, 24 Apr 2015 22:36:22 GMT
309
+ - request:
310
+ method: get
311
+ uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/datatransfers/
312
+ body:
313
+ encoding: US-ASCII
314
+ string: ''
315
+ headers:
316
+ Content-Type:
317
+ - application/json
318
+ User-Agent:
319
+ - OiApiRuby Gem 0.1.1
320
+ response:
321
+ status:
322
+ code: 200
323
+ message: OK
324
+ headers:
325
+ Date:
326
+ - Fri, 24 Apr 2015 22:35:20 GMT
327
+ Server:
328
+ - Apache/2.2.15 (CentOS)
329
+ Vary:
330
+ - Accept,Cookie
331
+ X-Frame-Options:
332
+ - SAMEORIGIN
333
+ Allow:
334
+ - GET, POST, HEAD, OPTIONS
335
+ Connection:
336
+ - close
337
+ Transfer-Encoding:
338
+ - chunked
339
+ Content-Type:
340
+ - application/json
341
+ body:
342
+ encoding: UTF-8
343
+ string: '[{"id": 90063, "name": "DT for Special Product 1 e9626c3b4d7983e3488e64fe0c90790e",
344
+ "status_id": 1, "type": "http", "offer_id": 79767, "dt_info": {"base_url":
345
+ "http://www.someclientbaseurl.com", "method": "POST"}, "data_fields": [{"email":
346
+ "#{EM}"}, {"first_name": "#{FN}"}, {"last_name": "#{LN}"}, {"zip": "#{PO}"},
347
+ {"gender": "#{G}"}]}, {"id": 90064, "name": "DT for Special Product 1 25924d60c9f12618b13ab5f85c998783",
348
+ "status_id": 1, "type": "http", "offer_id": 79768, "dt_info": {"base_url":
349
+ "http://www.someclientbaseurl.com", "method": "POST"}, "data_fields": [{"email":
350
+ "#{EM}"}, {"first_name": "#{FN}"}, {"last_name": "#{LN}"}, {"zip": "#{PO}"},
351
+ {"gender": "#{G}"}]}]'
352
+ http_version:
353
+ recorded_at: Fri, 24 Apr 2015 22:36:23 GMT
354
+ recorded_with: VCR 2.9.3