oi-api-ruby 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.sample +2 -0
- data/.gitignore +3 -0
- data/.rspec +4 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +9 -0
- data/api_issues.md +89 -0
- data/lib/oi_api.rb +12 -0
- data/lib/oi_api/client.rb +98 -0
- data/lib/oi_api/client/advertisers.rb +31 -0
- data/lib/oi_api/client/auto_responders.rb +35 -0
- data/lib/oi_api/client/balances.rb +15 -0
- data/lib/oi_api/client/cards.rb +33 -0
- data/lib/oi_api/client/charges.rb +15 -0
- data/lib/oi_api/client/data_transfers.rb +31 -0
- data/lib/oi_api/client/offers.rb +32 -0
- data/lib/oi_api/client/reports.rb +15 -0
- data/lib/oi_api/client/subscriptions.rb +23 -0
- data/lib/oi_api/configuration.rb +50 -0
- data/lib/oi_api/lookup_tables.rb +42 -0
- data/lib/oi_api/version.rb +3 -0
- data/oi-api-ruby.gemspec +31 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_200_OK.yml +157 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +157 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/returns_the_resource.yml +157 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertiser/it_should_behave_like_GET_resource/when_advertiser_id_not_found/returns_404.yml +77 -0
- 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
- data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_200_OK.yml +157 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +237 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_advertisers/it_should_behave_like_GET_resources/returns_all_resources.yml +237 -0
- 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
- data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +77 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +77 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_201_created.yml +118 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_a_success_message.yml +78 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_create_advertiser/it_should_behave_like_POST_resource/returns_a_success_status.yml +118 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/deletes_a_data_transfer.yml +153 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_200_OK.yml +116 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_the_correct_message.yml +196 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/returns_the_correct_status.yml +116 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_delete_advertiser/it_should_behave_like_DELETE_resource/when_advertiser_not_found/returns_404.yml +77 -0
- 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
- 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
- data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_200_OK.yml +42 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +42 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_reports/it_should_behave_like_GET_resources/returns_all_resources.yml +42 -0
- 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
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +156 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +156 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_200_OK.yml +155 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +155 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +195 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/when_advertiser_not_found/returns_404.yml +117 -0
- data/spec/cassettes/OiApi_Client_Advertisers/_update_advertiser/it_should_behave_like_PUT_resource/when_advertiser_not_found/returns_error_status.yml +77 -0
- 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
- data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_200_OK.yml +593 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +593 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_all_auto_responders/it_should_behave_like_GET_resources/returns_all_resources.yml +593 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_200_OK.yml +273 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +273 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders/it_should_behave_like_GET_resources/returns_all_resources.yml +273 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_200_OK.yml +593 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +673 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_no_offer_id/it_should_behave_like_GET_resources/returns_all_resources.yml +516 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_200_OK.yml +273 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +354 -0
- data/spec/cassettes/OiApi_Client_AutoResponders/_auto_responders_with_offer_id/it_should_behave_like_GET_resources/returns_all_resources.yml +354 -0
- data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_200_OK.yml +78 -0
- data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +78 -0
- data/spec/cassettes/OiApi_Client_Balances/_balance/it_should_behave_like_GET_resources/returns_all_resources.yml +78 -0
- data/spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml +78 -0
- data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_200_OK.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/returns_the_resource.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_card/it_should_behave_like_GET_resource/when_card_id_not_found/returns_404.yml +79 -0
- 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
- 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
- data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +80 -0
- data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +80 -0
- data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_201_created.yml +80 -0
- data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_a_success_message.yml +80 -0
- data/spec/cassettes/OiApi_Client_Cards/_create_card/it_should_behave_like_POST_resource/returns_a_success_status.yml +80 -0
- 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
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_200_OK.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +117 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml +79 -0
- data/spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_error_status.yml +79 -0
- 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
- 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
- data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +352 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +352 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_201_created.yml +352 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_a_success_message.yml +272 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_create_data_transfer/it_should_behave_like_POST_resource/returns_a_success_status.yml +352 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_200_OK.yml +393 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +393 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfer/it_should_behave_like_GET_resource/returns_the_resource.yml +472 -0
- 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
- 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
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_200_OK.yml +354 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +434 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_data_transfers/it_should_behave_like_GET_resources/returns_all_resources.yml +434 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/deletes_a_data_transfer.yml +428 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_200_OK.yml +390 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_the_correct_message.yml +310 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_delete_data_transfer/it_should_behave_like_DELETE_resource/returns_the_correct_status.yml +390 -0
- 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
- 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
- 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
- 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
- data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +390 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +390 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_200_OK.yml +389 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +389 -0
- data/spec/cassettes/OiApi_Client_DataTransfers/_update_data_transfer/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +349 -0
- 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
- 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
- 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
- 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
- data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/bad_request/returns_an_error_message.yml +195 -0
- data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/bad_request/returns_an_error_status.yml +195 -0
- data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_201_created.yml +196 -0
- data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_a_success_message.yml +156 -0
- data/spec/cassettes/OiApi_Client_Offers/_create_offer/it_should_behave_like_POST_resource/returns_a_success_status.yml +196 -0
- data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_200_OK.yml +246 -0
- data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_HTTParty_Response.yml +246 -0
- data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/returns_the_resource.yml +284 -0
- data/spec/cassettes/OiApi_Client_Offers/_offer/it_should_behave_like_GET_resource/when_offer_id_not_found/returns_404.yml +115 -0
- 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
- data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_200_OK.yml +416 -0
- data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +457 -0
- data/spec/cassettes/OiApi_Client_Offers/_offers/it_should_behave_like_GET_resources/returns_all_resources.yml +457 -0
- 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
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_message.yml +234 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/bad_request/returns_an_error_status.yml +234 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_200_OK.yml +234 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_the_correct_message.yml +234 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/returns_the_correct_status.yml +315 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/when_offer_not_found/returns_404.yml +154 -0
- data/spec/cassettes/OiApi_Client_Offers/_update_offer/it_should_behave_like_PUT_resource/when_offer_not_found/returns_error_status.yml +114 -0
- 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
- data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_200_OK.yml +46 -0
- data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_HTTParty_Response.yml +46 -0
- data/spec/cassettes/OiApi_Client_Reports/_reports/it_should_behave_like_GET_resources/returns_all_resources.yml +46 -0
- data/spec/cassettes/OiApi_Client_Reports/_reports/returns_a_report_summary.yml +46 -0
- data/spec/cassettes/OiApi_Client_Reports/_reports_with_query_params/retrieves_the_last_60_days_of_data.yml +42 -0
- data/spec/oi_api/client/advertisers_spec.rb +86 -0
- data/spec/oi_api/client/auto_responders_spec.rb +55 -0
- data/spec/oi_api/client/balances_spec.rb +22 -0
- data/spec/oi_api/client/cards_spec.rb +60 -0
- data/spec/oi_api/client/charges_spec.rb +9 -0
- data/spec/oi_api/client/data_transfers_spec.rb +95 -0
- data/spec/oi_api/client/offers_spec.rb +84 -0
- data/spec/oi_api/client/reports_spec.rb +31 -0
- data/spec/oi_api/client/subscriptions_spec.rb +11 -0
- data/spec/oi_api_spec.rb +49 -0
- data/spec/shared_examples_for_delete_resource.rb +37 -0
- data/spec/shared_examples_for_get_resource.rb +33 -0
- data/spec/shared_examples_for_get_resources.rb +15 -0
- data/spec/shared_examples_for_post_resource.rb +31 -0
- data/spec/shared_examples_for_put_resource.rb +46 -0
- data/spec/spec_helper.rb +60 -0
- data/spec/support/advertisers_factory.rb +22 -0
- data/spec/support/auto_responders_factory.rb +27 -0
- data/spec/support/balances_factory.rb +12 -0
- data/spec/support/cards_factory.rb +34 -0
- data/spec/support/charges_factory.rb +16 -0
- data/spec/support/data_transfers_factory.rb +34 -0
- data/spec/support/factory.rb +48 -0
- data/spec/support/offers_factory.rb +53 -0
- data/spec/support/reports_factory.rb +12 -0
- data/spec/support/subscriptions_factory.rb +16 -0
- data/spec_output.txt +341 -0
- metadata +487 -0
@@ -0,0 +1,237 @@
|
|
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:34:25 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": 40323, "name": "new advertiser 24593d27aa8e69f9b5c08b16bf61a64b",
|
38
|
+
"status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:35:26",
|
39
|
+
"modify_date": "2015-04-24T18:35:26"}, {"id": 40324, "name": "new advertiser
|
40
|
+
d78ed04f05c7f3481dd72894f3965909", "status_id": 1, "category_id": 1010, "key":
|
41
|
+
"", "create_date": "2015-04-24T18:35:26", "modify_date": "2015-04-24T18:35:26"}]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 24 Apr 2015 22:35:27 GMT
|
44
|
+
- request:
|
45
|
+
method: delete
|
46
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40323/
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Content-Type:
|
52
|
+
- application/json
|
53
|
+
User-Agent:
|
54
|
+
- OiApiRuby Gem 0.1.1
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Date:
|
61
|
+
- Fri, 24 Apr 2015 22:34:25 GMT
|
62
|
+
Server:
|
63
|
+
- Apache/2.2.15 (CentOS)
|
64
|
+
Vary:
|
65
|
+
- Accept,Cookie
|
66
|
+
X-Frame-Options:
|
67
|
+
- SAMEORIGIN
|
68
|
+
Allow:
|
69
|
+
- GET, PUT, DELETE, HEAD, OPTIONS
|
70
|
+
Connection:
|
71
|
+
- close
|
72
|
+
Transfer-Encoding:
|
73
|
+
- chunked
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
|
79
|
+
deleted"}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Fri, 24 Apr 2015 22:35:27 GMT
|
82
|
+
- request:
|
83
|
+
method: delete
|
84
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40324/
|
85
|
+
body:
|
86
|
+
encoding: US-ASCII
|
87
|
+
string: ''
|
88
|
+
headers:
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
User-Agent:
|
92
|
+
- OiApiRuby Gem 0.1.1
|
93
|
+
response:
|
94
|
+
status:
|
95
|
+
code: 200
|
96
|
+
message: OK
|
97
|
+
headers:
|
98
|
+
Date:
|
99
|
+
- Fri, 24 Apr 2015 22:34:25 GMT
|
100
|
+
Server:
|
101
|
+
- Apache/2.2.15 (CentOS)
|
102
|
+
Vary:
|
103
|
+
- Accept,Cookie
|
104
|
+
X-Frame-Options:
|
105
|
+
- SAMEORIGIN
|
106
|
+
Allow:
|
107
|
+
- GET, PUT, DELETE, HEAD, OPTIONS
|
108
|
+
Connection:
|
109
|
+
- close
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
Content-Type:
|
113
|
+
- application/json
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
|
117
|
+
deleted"}'
|
118
|
+
http_version:
|
119
|
+
recorded_at: Fri, 24 Apr 2015 22:35:28 GMT
|
120
|
+
- request:
|
121
|
+
method: post
|
122
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
123
|
+
body:
|
124
|
+
encoding: UTF-8
|
125
|
+
string: '{"name":"new advertiser ce34889bfdb2aeb1448b10c96da2775c","status_id":1,"category_id":1010}'
|
126
|
+
headers:
|
127
|
+
Content-Type:
|
128
|
+
- application/json
|
129
|
+
User-Agent:
|
130
|
+
- OiApiRuby Gem 0.1.1
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 201
|
134
|
+
message: CREATED
|
135
|
+
headers:
|
136
|
+
Date:
|
137
|
+
- Fri, 24 Apr 2015 22:34:25 GMT
|
138
|
+
Server:
|
139
|
+
- Apache/2.2.15 (CentOS)
|
140
|
+
Vary:
|
141
|
+
- Accept,Cookie
|
142
|
+
X-Frame-Options:
|
143
|
+
- SAMEORIGIN
|
144
|
+
Allow:
|
145
|
+
- GET, POST, HEAD, OPTIONS
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Transfer-Encoding:
|
149
|
+
- chunked
|
150
|
+
Content-Type:
|
151
|
+
- application/json
|
152
|
+
body:
|
153
|
+
encoding: UTF-8
|
154
|
+
string: '{"status": "Create Successful", "message": "Advertiser successfully
|
155
|
+
created", "id": 40325}'
|
156
|
+
http_version:
|
157
|
+
recorded_at: Fri, 24 Apr 2015 22:35:28 GMT
|
158
|
+
- request:
|
159
|
+
method: post
|
160
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: '{"name":"new advertiser 510abd632edcc25900a50b0b5432b50b","status_id":1,"category_id":1010}'
|
164
|
+
headers:
|
165
|
+
Content-Type:
|
166
|
+
- application/json
|
167
|
+
User-Agent:
|
168
|
+
- OiApiRuby Gem 0.1.1
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 201
|
172
|
+
message: CREATED
|
173
|
+
headers:
|
174
|
+
Date:
|
175
|
+
- Fri, 24 Apr 2015 22:34:26 GMT
|
176
|
+
Server:
|
177
|
+
- Apache/2.2.15 (CentOS)
|
178
|
+
Vary:
|
179
|
+
- Accept,Cookie
|
180
|
+
X-Frame-Options:
|
181
|
+
- SAMEORIGIN
|
182
|
+
Allow:
|
183
|
+
- GET, POST, HEAD, OPTIONS
|
184
|
+
Connection:
|
185
|
+
- close
|
186
|
+
Transfer-Encoding:
|
187
|
+
- chunked
|
188
|
+
Content-Type:
|
189
|
+
- application/json
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"status": "Create Successful", "message": "Advertiser successfully
|
193
|
+
created", "id": 40326}'
|
194
|
+
http_version:
|
195
|
+
recorded_at: Fri, 24 Apr 2015 22:35:28 GMT
|
196
|
+
- request:
|
197
|
+
method: get
|
198
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
199
|
+
body:
|
200
|
+
encoding: US-ASCII
|
201
|
+
string: ''
|
202
|
+
headers:
|
203
|
+
Content-Type:
|
204
|
+
- application/json
|
205
|
+
User-Agent:
|
206
|
+
- OiApiRuby Gem 0.1.1
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Date:
|
213
|
+
- Fri, 24 Apr 2015 22:34:26 GMT
|
214
|
+
Server:
|
215
|
+
- Apache/2.2.15 (CentOS)
|
216
|
+
Vary:
|
217
|
+
- Accept,Cookie
|
218
|
+
X-Frame-Options:
|
219
|
+
- SAMEORIGIN
|
220
|
+
Allow:
|
221
|
+
- GET, POST, HEAD, OPTIONS
|
222
|
+
Connection:
|
223
|
+
- close
|
224
|
+
Transfer-Encoding:
|
225
|
+
- chunked
|
226
|
+
Content-Type:
|
227
|
+
- application/json
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
string: '[{"id": 40325, "name": "new advertiser ce34889bfdb2aeb1448b10c96da2775c",
|
231
|
+
"status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:35:28",
|
232
|
+
"modify_date": "2015-04-24T18:35:28"}, {"id": 40326, "name": "new advertiser
|
233
|
+
510abd632edcc25900a50b0b5432b50b", "status_id": 1, "category_id": 1010, "key":
|
234
|
+
"", "create_date": "2015-04-24T18:35:28", "modify_date": "2015-04-24T18:35:28"}]'
|
235
|
+
http_version:
|
236
|
+
recorded_at: Fri, 24 Apr 2015 22:35:29 GMT
|
237
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,237 @@
|
|
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:34:27 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": 40325, "name": "new advertiser ce34889bfdb2aeb1448b10c96da2775c",
|
38
|
+
"status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:35:28",
|
39
|
+
"modify_date": "2015-04-24T18:35:28"}, {"id": 40326, "name": "new advertiser
|
40
|
+
510abd632edcc25900a50b0b5432b50b", "status_id": 1, "category_id": 1010, "key":
|
41
|
+
"", "create_date": "2015-04-24T18:35:28", "modify_date": "2015-04-24T18:35:28"}]'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Fri, 24 Apr 2015 22:35:29 GMT
|
44
|
+
- request:
|
45
|
+
method: delete
|
46
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40325/
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Content-Type:
|
52
|
+
- application/json
|
53
|
+
User-Agent:
|
54
|
+
- OiApiRuby Gem 0.1.1
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Date:
|
61
|
+
- Fri, 24 Apr 2015 22:34:27 GMT
|
62
|
+
Server:
|
63
|
+
- Apache/2.2.15 (CentOS)
|
64
|
+
Vary:
|
65
|
+
- Accept,Cookie
|
66
|
+
X-Frame-Options:
|
67
|
+
- SAMEORIGIN
|
68
|
+
Allow:
|
69
|
+
- GET, PUT, DELETE, HEAD, OPTIONS
|
70
|
+
Connection:
|
71
|
+
- close
|
72
|
+
Transfer-Encoding:
|
73
|
+
- chunked
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
|
79
|
+
deleted"}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Fri, 24 Apr 2015 22:35:29 GMT
|
82
|
+
- request:
|
83
|
+
method: delete
|
84
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40326/
|
85
|
+
body:
|
86
|
+
encoding: US-ASCII
|
87
|
+
string: ''
|
88
|
+
headers:
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
User-Agent:
|
92
|
+
- OiApiRuby Gem 0.1.1
|
93
|
+
response:
|
94
|
+
status:
|
95
|
+
code: 200
|
96
|
+
message: OK
|
97
|
+
headers:
|
98
|
+
Date:
|
99
|
+
- Fri, 24 Apr 2015 22:34:27 GMT
|
100
|
+
Server:
|
101
|
+
- Apache/2.2.15 (CentOS)
|
102
|
+
Vary:
|
103
|
+
- Accept,Cookie
|
104
|
+
X-Frame-Options:
|
105
|
+
- SAMEORIGIN
|
106
|
+
Allow:
|
107
|
+
- GET, PUT, DELETE, HEAD, OPTIONS
|
108
|
+
Connection:
|
109
|
+
- close
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
Content-Type:
|
113
|
+
- application/json
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"status": "Delete Successful", "message": "Advertiser Succesfully
|
117
|
+
deleted"}'
|
118
|
+
http_version:
|
119
|
+
recorded_at: Fri, 24 Apr 2015 22:35:30 GMT
|
120
|
+
- request:
|
121
|
+
method: post
|
122
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
123
|
+
body:
|
124
|
+
encoding: UTF-8
|
125
|
+
string: '{"name":"new advertiser 4d5e8397516e55ee1b9380350a667bee","status_id":1,"category_id":1010}'
|
126
|
+
headers:
|
127
|
+
Content-Type:
|
128
|
+
- application/json
|
129
|
+
User-Agent:
|
130
|
+
- OiApiRuby Gem 0.1.1
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 201
|
134
|
+
message: CREATED
|
135
|
+
headers:
|
136
|
+
Date:
|
137
|
+
- Fri, 24 Apr 2015 22:34:27 GMT
|
138
|
+
Server:
|
139
|
+
- Apache/2.2.15 (CentOS)
|
140
|
+
Vary:
|
141
|
+
- Accept,Cookie
|
142
|
+
X-Frame-Options:
|
143
|
+
- SAMEORIGIN
|
144
|
+
Allow:
|
145
|
+
- GET, POST, HEAD, OPTIONS
|
146
|
+
Connection:
|
147
|
+
- close
|
148
|
+
Transfer-Encoding:
|
149
|
+
- chunked
|
150
|
+
Content-Type:
|
151
|
+
- application/json
|
152
|
+
body:
|
153
|
+
encoding: UTF-8
|
154
|
+
string: '{"status": "Create Successful", "message": "Advertiser successfully
|
155
|
+
created", "id": 40327}'
|
156
|
+
http_version:
|
157
|
+
recorded_at: Fri, 24 Apr 2015 22:35:30 GMT
|
158
|
+
- request:
|
159
|
+
method: post
|
160
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: '{"name":"new advertiser b975aa132561d60552116b4875b120ce","status_id":1,"category_id":1010}'
|
164
|
+
headers:
|
165
|
+
Content-Type:
|
166
|
+
- application/json
|
167
|
+
User-Agent:
|
168
|
+
- OiApiRuby Gem 0.1.1
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 201
|
172
|
+
message: CREATED
|
173
|
+
headers:
|
174
|
+
Date:
|
175
|
+
- Fri, 24 Apr 2015 22:34:28 GMT
|
176
|
+
Server:
|
177
|
+
- Apache/2.2.15 (CentOS)
|
178
|
+
Vary:
|
179
|
+
- Accept,Cookie
|
180
|
+
X-Frame-Options:
|
181
|
+
- SAMEORIGIN
|
182
|
+
Allow:
|
183
|
+
- GET, POST, HEAD, OPTIONS
|
184
|
+
Connection:
|
185
|
+
- close
|
186
|
+
Transfer-Encoding:
|
187
|
+
- chunked
|
188
|
+
Content-Type:
|
189
|
+
- application/json
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"status": "Create Successful", "message": "Advertiser successfully
|
193
|
+
created", "id": 40328}'
|
194
|
+
http_version:
|
195
|
+
recorded_at: Fri, 24 Apr 2015 22:35:30 GMT
|
196
|
+
- request:
|
197
|
+
method: get
|
198
|
+
uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
|
199
|
+
body:
|
200
|
+
encoding: US-ASCII
|
201
|
+
string: ''
|
202
|
+
headers:
|
203
|
+
Content-Type:
|
204
|
+
- application/json
|
205
|
+
User-Agent:
|
206
|
+
- OiApiRuby Gem 0.1.1
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Date:
|
213
|
+
- Fri, 24 Apr 2015 22:34:28 GMT
|
214
|
+
Server:
|
215
|
+
- Apache/2.2.15 (CentOS)
|
216
|
+
Vary:
|
217
|
+
- Accept,Cookie
|
218
|
+
X-Frame-Options:
|
219
|
+
- SAMEORIGIN
|
220
|
+
Allow:
|
221
|
+
- GET, POST, HEAD, OPTIONS
|
222
|
+
Connection:
|
223
|
+
- close
|
224
|
+
Transfer-Encoding:
|
225
|
+
- chunked
|
226
|
+
Content-Type:
|
227
|
+
- application/json
|
228
|
+
body:
|
229
|
+
encoding: UTF-8
|
230
|
+
string: '[{"id": 40327, "name": "new advertiser 4d5e8397516e55ee1b9380350a667bee",
|
231
|
+
"status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:35:30",
|
232
|
+
"modify_date": "2015-04-24T18:35:30"}, {"id": 40328, "name": "new advertiser
|
233
|
+
b975aa132561d60552116b4875b120ce", "status_id": 1, "category_id": 1010, "key":
|
234
|
+
"", "create_date": "2015-04-24T18:35:30", "modify_date": "2015-04-24T18:35:30"}]'
|
235
|
+
http_version:
|
236
|
+
recorded_at: Fri, 24 Apr 2015 22:35:31 GMT
|
237
|
+
recorded_with: VCR 2.9.3
|