appnexusapi 0.1.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -4
- data/UPGRADING.md +10 -0
- data/appnexusapi.gemspec +2 -0
- data/env_example +1 -3
- data/lib/appnexusapi/advertiser_resource.rb +2 -0
- data/lib/appnexusapi/advertiser_service.rb +2 -0
- data/lib/appnexusapi/campaign_resource.rb +2 -0
- data/lib/appnexusapi/campaign_service.rb +2 -0
- data/lib/appnexusapi/connection.rb +19 -5
- data/lib/appnexusapi/content_category_service.rb +3 -1
- data/lib/appnexusapi/creative_service.rb +0 -10
- data/lib/appnexusapi/payment_rule_resource.rb +2 -0
- data/lib/appnexusapi/payment_rule_service.rb +2 -0
- data/lib/appnexusapi/placement_resource.rb +2 -0
- data/lib/appnexusapi/placement_service.rb +2 -0
- data/lib/appnexusapi/profile_resource.rb +2 -0
- data/lib/appnexusapi/profile_service.rb +2 -0
- data/lib/appnexusapi/publisher_resource.rb +2 -0
- data/lib/appnexusapi/publisher_service.rb +2 -0
- data/lib/appnexusapi/resource.rb +5 -4
- data/lib/appnexusapi/service.rb +16 -8
- data/lib/appnexusapi/site_resource.rb +2 -0
- data/lib/appnexusapi/site_service.rb +2 -0
- data/lib/appnexusapi/version.rb +1 -1
- data/spec/connection_spec.rb +13 -3
- data/spec/creative_service_spec.rb +33 -22
- data/spec/fixtures/vcr/advertiser_get.yml +108 -0
- data/spec/fixtures/vcr/campaign_life_cycle.yml +524 -0
- data/spec/fixtures/vcr/content_category_crud.yml +398 -0
- data/spec/fixtures/vcr/creative_service_create.yml +216 -0
- data/spec/fixtures/vcr/creative_service_delete.yml +354 -0
- data/spec/fixtures/vcr/creative_service_get.yml +214 -0
- data/spec/fixtures/vcr/creative_service_update.yml +266 -0
- data/spec/fixtures/vcr/domain_list_limits.yml +105 -0
- data/spec/fixtures/vcr/line_item_life_cycle.yml +521 -0
- data/spec/fixtures/vcr/member_get.yml +150 -0
- data/spec/fixtures/vcr/object_limit_info.yml +105 -0
- data/spec/fixtures/vcr/payment_rule_lifecycle.yml +346 -0
- data/spec/fixtures/vcr/placement_service_default_placement.yml +166 -0
- data/spec/fixtures/vcr/profile_life_cycle.yml +349 -0
- data/spec/fixtures/vcr/profile_limits.yml +105 -0
- data/spec/fixtures/vcr/publisher_crud.yml +282 -0
- data/spec/fixtures/vcr/site_lifecycle.yml +284 -0
- data/spec/fixtures/vcr/user_login.yml +107 -0
- data/spec/fixtures/vcr/user_update.yml +288 -0
- data/spec/integration/advertiser_spec.rb +11 -0
- data/spec/integration/campaign_spec.rb +38 -0
- data/spec/integration/content_category_spec.rb +22 -0
- data/spec/integration/line_item_spec.rb +27 -0
- data/spec/integration/member_spec.rb +9 -0
- data/spec/integration/payment_rule_spec.rb +33 -0
- data/spec/integration/placement_spec.rb +29 -0
- data/spec/integration/profile_spec.rb +29 -0
- data/spec/integration/publisher_spec.rb +20 -0
- data/spec/integration/site_spec.rb +32 -0
- data/spec/integration/user_spec.rb +42 -0
- data/spec/object_limit_service_spec.rb +14 -11
- data/spec/spec_helper.rb +52 -25
- data/spec/support/shared_contexts.rb +28 -0
- metadata +109 -3
@@ -0,0 +1,105 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '698'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 12:59:33 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1636d57f3%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1402'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b1636d57f3:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"5c8221ad-5890-5a4a-89a1-747f3c37ea1f","warnings":[],"time":795.01104354858,"start_microtime":1486558773.7293,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"456893f6-e153-57fe-b2a9-35fc64ab2955","warnings":[],"time":1388.423204422,"start_microtime":1486558773.7045,"version":"1.17.202","slave_lag":1040309,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 12:59:33 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api-test.appnexus.com/object-limit?num_elements=100&object_type=profile&start_element=0
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b1636d57f3:nym2
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
|
+
Accept:
|
62
|
+
- "*/*"
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
70
|
+
Content-Length:
|
71
|
+
- '1096'
|
72
|
+
Content-Type:
|
73
|
+
- application/json
|
74
|
+
Date:
|
75
|
+
- Wed, 08 Feb 2017 12:59:35 GMT
|
76
|
+
Expires:
|
77
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
78
|
+
Pragma:
|
79
|
+
- no-cache
|
80
|
+
Server:
|
81
|
+
- Apache
|
82
|
+
Set-Cookie:
|
83
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1636d57f3%3Anym2; Path=/
|
84
|
+
X-Count-Read:
|
85
|
+
- user:14,member:6,serviceHostUser:2,serviceHostMember:2,hostUser:6,hostMember:6,ip:0
|
86
|
+
X-Count-Write:
|
87
|
+
- user:6,member:6,serviceHostUser:0,serviceHostMember:0,hostUser:6,hostMember:6,ip:0
|
88
|
+
X-Ratelimit-Read:
|
89
|
+
- '1000'
|
90
|
+
X-Ratelimit-Service:
|
91
|
+
- 1000-Default
|
92
|
+
X-Ratelimit-System:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-Write:
|
95
|
+
- '1000'
|
96
|
+
X-Route:
|
97
|
+
- "/object-limit"
|
98
|
+
X-Route-Time:
|
99
|
+
- '28'
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"response":{"status":"OK","start_element":null,"num_elements":null,"object-limits":[{"object_type":"profile","limit":null,"mapping_limits":{"segment_targets":400,"segment_group_targets":400,"publisher_targets":300,"site_targets":100,"placement_targets":250,"inventory_source_targets":500,"platform_content_category_targets":300,"content_category_targets":300,"zip_targets":4000},"count_active":null,"count_inactive":null,"count_total":null}],"count":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":14,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":6,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":6,"read_limit":1000,"read_limit_seconds":60,"writes":6,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"0f9c6127-da98-530f-881b-479445250612","warnings":[],"time":18.856048583984,"start_microtime":1486558775.5585,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1040318,"member_last_modified_age":2,"output_term":"object-limits"}}}'
|
103
|
+
http_version:
|
104
|
+
recorded_at: Wed, 08 Feb 2017 12:59:33 GMT
|
105
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,282 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '699'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 13:15:06 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b19db6eb56%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1373'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b19db6eb56:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"fae94a5e-cb9b-59a1-bbd2-203d44b2601c","warnings":[],"time":793.93887519836,"start_microtime":1486559706.3322,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"92625245-5333-52f3-b86c-15b3b1fc21ae","warnings":[],"time":1362.7851009369,"start_microtime":1486559706.3083,"version":"1.17.202","slave_lag":1041247,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 13:15:06 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://api-test.appnexus.com/publisher?create_default_placement=false
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"publisher":{"name":"spec publisher","code":"spec_publisher_code","expose_domains":true,"reselling_exposure":"public","ad_quality_advanced_mode_enabled":true}}'
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b19db6eb56:nym2
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Cache-Control:
|
71
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
72
|
+
Content-Length:
|
73
|
+
- '2331'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 13:15:08 GMT
|
78
|
+
Expires:
|
79
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
80
|
+
Pragma:
|
81
|
+
- no-cache
|
82
|
+
Server:
|
83
|
+
- Apache
|
84
|
+
Set-Cookie:
|
85
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b19db6eb56%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:7,member:4,serviceHostUser:2,serviceHostMember:2,hostUser:4,hostMember:4,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:1,member:1,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
90
|
+
X-Ratelimit-Read:
|
91
|
+
- '1000'
|
92
|
+
X-Ratelimit-Service:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-System:
|
95
|
+
- 1000-Default
|
96
|
+
X-Ratelimit-Write:
|
97
|
+
- '1000'
|
98
|
+
X-Route:
|
99
|
+
- "/publisher"
|
100
|
+
X-Route-Time:
|
101
|
+
- '300'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":925480,"start_element":0,"num_elements":100,"publisher":{"id":925480,"code":"spec_publisher_code","reselling_name":null,"expose_domains":true,"is_rtb":false,"reselling_exposure":"public","reselling_exposed_on":"2017-02-08
|
105
|
+
13:15:08","timezone":"EST5EDT","last_modified":"2017-02-08 13:15:08","max_learn_pct":0,"accept_demand_partner_usersync":null,"learn_bypass_cpm":5,"ad_quality_advanced_mode_enabled":true,"allow_report_on_default_imps":false,"inventory_source":null,"inventory_relationship":"undeclared","disclosure_status":"undisclosed","name":"spec
|
106
|
+
publisher","description":"","state":"active","default_site_id":null,"default_ad_profile_id":null,"billing_dba":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"billing_country":null,"accept_supply_partner_usersync":null,"accept_data_provider_usersync":null,"ym_profile_id":null,"allow_cpm_managed":true,"allow_cpm_external":true,"allow_cpa_managed":true,"allow_cpa_external":false,"allow_cpc_managed":true,"allow_cpc_external":false,"managed_cpc_bias_pct":100,"managed_cpa_bias_pct":100,"external_cpc_bias_pct":100,"external_cpa_bias_pct":100,"is_oo":false,"base_payment_rule_id":1192850,"base_ad_quality_rule_id":null,"currency":"USD","visibility_profile_id":null,"cpm_reselling_disabled":false,"cpc_reselling_disabled":false,"platform_ops_notes":null,"pitbull_segment_id":0,"pitbull_segment_value":0,"enable_cookie_tracking_default":true,"seller_page_cap_enabled":false,"inventory_source_name":null,"billing_internal_user":null,"labels":null,"placements":null,"external_inv_codes":null,"contact_info":null,"publisher_brand_exceptions":null,"contact":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":7,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":1,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":4,"read_limit":1000,"read_limit_seconds":60,"writes":1,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"9da8a800-d2a1-585e-9f10-feac0875537c","warnings":[],"time":285.6822013855,"start_microtime":1486559708.4166,"version":"1.17.202","slave_lag":1041247,"member_last_modified_age":1486559708,"output_term":"publisher"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 13:15:07 GMT
|
109
|
+
- request:
|
110
|
+
method: get
|
111
|
+
uri: https://api-test.appnexus.com/publisher?id=925480&num_elements=100&start_element=0
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ''
|
115
|
+
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.11.0
|
118
|
+
Authorization:
|
119
|
+
- hbapi:171678:589b19db6eb56:nym2
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
122
|
+
Accept:
|
123
|
+
- "*/*"
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Cache-Control:
|
130
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
131
|
+
Content-Length:
|
132
|
+
- '2342'
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
Date:
|
136
|
+
- Wed, 08 Feb 2017 13:15:09 GMT
|
137
|
+
Expires:
|
138
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
139
|
+
Pragma:
|
140
|
+
- no-cache
|
141
|
+
Server:
|
142
|
+
- Apache
|
143
|
+
Set-Cookie:
|
144
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b19db6eb56%3Anym2; Path=/
|
145
|
+
X-Count-Read:
|
146
|
+
- user:8,member:5,serviceHostUser:3,serviceHostMember:3,hostUser:5,hostMember:5,ip:0
|
147
|
+
X-Count-Write:
|
148
|
+
- user:1,member:1,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
149
|
+
X-Ratelimit-Read:
|
150
|
+
- '1000'
|
151
|
+
X-Ratelimit-Service:
|
152
|
+
- 1000-Default
|
153
|
+
X-Ratelimit-System:
|
154
|
+
- 1000-Default
|
155
|
+
X-Ratelimit-Write:
|
156
|
+
- '1000'
|
157
|
+
X-Route:
|
158
|
+
- "/publisher"
|
159
|
+
X-Route-Time:
|
160
|
+
- '35'
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: '{"response":{"status":"OK","start_element":0,"num_elements":100,"publisher":{"id":925480,"code":"spec_publisher_code","reselling_name":null,"expose_domains":true,"is_rtb":false,"reselling_exposure":"public","reselling_exposed_on":"2017-02-08
|
164
|
+
13:15:08","timezone":"EST5EDT","last_modified":"2017-02-08 13:15:08","max_learn_pct":0,"accept_demand_partner_usersync":null,"learn_bypass_cpm":5,"ad_quality_advanced_mode_enabled":true,"allow_report_on_default_imps":false,"inventory_source":null,"inventory_relationship":"undeclared","disclosure_status":"undisclosed","name":"spec
|
165
|
+
publisher","description":"","state":"active","default_site_id":null,"default_ad_profile_id":null,"billing_dba":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"billing_country":null,"accept_supply_partner_usersync":null,"accept_data_provider_usersync":null,"ym_profile_id":null,"allow_cpm_managed":true,"allow_cpm_external":true,"allow_cpa_managed":true,"allow_cpa_external":false,"allow_cpc_managed":true,"allow_cpc_external":false,"managed_cpc_bias_pct":100,"managed_cpa_bias_pct":100,"external_cpc_bias_pct":100,"external_cpa_bias_pct":100,"is_oo":false,"base_payment_rule_id":1192850,"base_ad_quality_rule_id":null,"currency":"USD","visibility_profile_id":null,"cpm_reselling_disabled":false,"cpc_reselling_disabled":false,"platform_ops_notes":null,"pitbull_segment_id":0,"pitbull_segment_value":0,"enable_cookie_tracking_default":true,"seller_page_cap_enabled":false,"inventory_source_name":null,"billing_internal_user":null,"labels":null,"placements":null,"external_inv_codes":null,"contact_info":null,"publisher_brand_exceptions":null,"contact":null},"count":1,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":8,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":1,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":1,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"e6902f93-cde5-538f-af7a-5c9d544dde52","warnings":[],"time":25.680065155029,"start_microtime":1486559709.2586,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1041247,"member_last_modified_age":1,"output_term":"publisher"}}}'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Wed, 08 Feb 2017 13:15:07 GMT
|
168
|
+
- request:
|
169
|
+
method: delete
|
170
|
+
uri: https://api-test.appnexus.com/publisher?id=925480
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ''
|
174
|
+
headers:
|
175
|
+
User-Agent:
|
176
|
+
- Faraday v0.11.0
|
177
|
+
Authorization:
|
178
|
+
- hbapi:171678:589b19db6eb56:nym2
|
179
|
+
Accept-Encoding:
|
180
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
181
|
+
Accept:
|
182
|
+
- "*/*"
|
183
|
+
response:
|
184
|
+
status:
|
185
|
+
code: 200
|
186
|
+
message: OK
|
187
|
+
headers:
|
188
|
+
Cache-Control:
|
189
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
190
|
+
Content-Length:
|
191
|
+
- '695'
|
192
|
+
Content-Type:
|
193
|
+
- application/json
|
194
|
+
Date:
|
195
|
+
- Wed, 08 Feb 2017 13:15:09 GMT
|
196
|
+
Expires:
|
197
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
198
|
+
Pragma:
|
199
|
+
- no-cache
|
200
|
+
Server:
|
201
|
+
- Apache
|
202
|
+
Set-Cookie:
|
203
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b19db6eb56%3Anym2; Path=/
|
204
|
+
X-Count-Read:
|
205
|
+
- user:8,member:5,serviceHostUser:3,serviceHostMember:3,hostUser:5,hostMember:5,ip:0
|
206
|
+
X-Count-Write:
|
207
|
+
- user:2,member:2,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
208
|
+
X-Ratelimit-Read:
|
209
|
+
- '1000'
|
210
|
+
X-Ratelimit-Service:
|
211
|
+
- 1000-Default
|
212
|
+
X-Ratelimit-System:
|
213
|
+
- 1000-Default
|
214
|
+
X-Ratelimit-Write:
|
215
|
+
- '1000'
|
216
|
+
X-Route:
|
217
|
+
- "/publisher"
|
218
|
+
X-Route-Time:
|
219
|
+
- '762'
|
220
|
+
body:
|
221
|
+
encoding: UTF-8
|
222
|
+
string: '{"response":{"status":"OK","count":1,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":8,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":2,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":2,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"034a963f-2c5d-5350-beb6-b8c1b5b3032d","warnings":[],"time":747.01905250549,"start_microtime":1486559709.6754,"version":"1.17.202","slave_lag":1041247,"member_last_modified_age":1486559709,"output_term":"not_found"}}}'
|
223
|
+
http_version:
|
224
|
+
recorded_at: Wed, 08 Feb 2017 13:15:08 GMT
|
225
|
+
- request:
|
226
|
+
method: get
|
227
|
+
uri: https://api-test.appnexus.com/publisher?id=925480&num_elements=100&start_element=0
|
228
|
+
body:
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ''
|
231
|
+
headers:
|
232
|
+
User-Agent:
|
233
|
+
- Faraday v0.11.0
|
234
|
+
Authorization:
|
235
|
+
- hbapi:171678:589b19db6eb56:nym2
|
236
|
+
Accept-Encoding:
|
237
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
238
|
+
Accept:
|
239
|
+
- "*/*"
|
240
|
+
response:
|
241
|
+
status:
|
242
|
+
code: 200
|
243
|
+
message: OK
|
244
|
+
headers:
|
245
|
+
Cache-Control:
|
246
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
247
|
+
Content-Length:
|
248
|
+
- '804'
|
249
|
+
Content-Type:
|
250
|
+
- application/json
|
251
|
+
Date:
|
252
|
+
- Wed, 08 Feb 2017 13:15:10 GMT
|
253
|
+
Expires:
|
254
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
255
|
+
Pragma:
|
256
|
+
- no-cache
|
257
|
+
Server:
|
258
|
+
- Apache
|
259
|
+
Set-Cookie:
|
260
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b19db6eb56%3Anym2; Path=/
|
261
|
+
X-Count-Read:
|
262
|
+
- user:9,member:6,serviceHostUser:4,serviceHostMember:4,hostUser:6,hostMember:6,ip:0
|
263
|
+
X-Count-Write:
|
264
|
+
- user:2,member:2,serviceHostUser:2,serviceHostMember:2,hostUser:2,hostMember:2,ip:0
|
265
|
+
X-Ratelimit-Read:
|
266
|
+
- '1000'
|
267
|
+
X-Ratelimit-Service:
|
268
|
+
- 1000-Default
|
269
|
+
X-Ratelimit-System:
|
270
|
+
- 1000-Default
|
271
|
+
X-Ratelimit-Write:
|
272
|
+
- '1000'
|
273
|
+
X-Route:
|
274
|
+
- "/publisher"
|
275
|
+
X-Route-Time:
|
276
|
+
- '26'
|
277
|
+
body:
|
278
|
+
encoding: UTF-8
|
279
|
+
string: '{"response":{"error_id":"SYNTAX","error":"publisher id not found: 925480","error_description":null,"service":"publisher","method":"GET","error_code":"NOTFOUND_PUBLISHER","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":2,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":6,"read_limit":1000,"read_limit_seconds":60,"writes":2,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"44003397-c707-52e9-849e-73c749bd909b","warnings":[],"time":16.727924346924,"start_microtime":1486559710.882,"version":"1.17.202","slave_miss":"no_slaves_found","slave_lag":1041247,"member_last_modified_age":0,"output_term":"not_found"}}}'
|
280
|
+
http_version:
|
281
|
+
recorded_at: Wed, 08 Feb 2017 13:15:09 GMT
|
282
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,284 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-test.appnexus.com/auth
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"auth":{"username":"<APPNEXUS_USERNAME>","password":"<APPNEXUS_PASSWORD>"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.11.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
25
|
+
Content-Length:
|
26
|
+
- '699'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 08 Feb 2017 13:16:34 GMT
|
31
|
+
Expires:
|
32
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- Apache
|
37
|
+
Set-Cookie:
|
38
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1a338dd46%3Anym2; Path=/
|
39
|
+
X-Route:
|
40
|
+
- "/auth"
|
41
|
+
X-Route-Time:
|
42
|
+
- '1383'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"response":{"status":"OK","token":"hbapi:171678:589b1a338dd46:nym2","dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","parent_dbg_info":{"instance":"01.api.test104169.nym2","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"f757ba8d-9d0f-57a9-927d-338ae38f9408","warnings":[],"time":794.99697685242,"start_microtime":1486559794.4541,"version":"1.17","output_term":"not_found"},"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"5f40fbe6-ac5c-596a-860d-ee6ad48f32f9","warnings":[],"time":1370.5930709839,"start_microtime":1486559794.4301,"version":"1.17.202","slave_lag":1041336,"output_term":"not_found"}}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 08 Feb 2017 13:16:33 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://api-test.appnexus.com/publisher?create_default_placement=false
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"publisher":{"name":"spec publisher","code":"spec_publisher_code","expose_domains":true,"reselling_exposure":"public","ad_quality_advanced_mode_enabled":true}}'
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v0.11.0
|
57
|
+
Authorization:
|
58
|
+
- hbapi:171678:589b1a338dd46:nym2
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Cache-Control:
|
71
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
72
|
+
Content-Length:
|
73
|
+
- '2331'
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Date:
|
77
|
+
- Wed, 08 Feb 2017 13:16:36 GMT
|
78
|
+
Expires:
|
79
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
80
|
+
Pragma:
|
81
|
+
- no-cache
|
82
|
+
Server:
|
83
|
+
- Apache
|
84
|
+
Set-Cookie:
|
85
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1a338dd46%3Anym2; Path=/
|
86
|
+
X-Count-Read:
|
87
|
+
- user:9,member:5,serviceHostUser:2,serviceHostMember:2,hostUser:5,hostMember:5,ip:0
|
88
|
+
X-Count-Write:
|
89
|
+
- user:1,member:1,serviceHostUser:1,serviceHostMember:1,hostUser:1,hostMember:1,ip:0
|
90
|
+
X-Ratelimit-Read:
|
91
|
+
- '1000'
|
92
|
+
X-Ratelimit-Service:
|
93
|
+
- 1000-Default
|
94
|
+
X-Ratelimit-System:
|
95
|
+
- 1000-Default
|
96
|
+
X-Ratelimit-Write:
|
97
|
+
- '1000'
|
98
|
+
X-Route:
|
99
|
+
- "/publisher"
|
100
|
+
X-Route-Time:
|
101
|
+
- '297'
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: '{"response":{"status":"OK","count":1,"id":925481,"start_element":0,"num_elements":100,"publisher":{"id":925481,"code":"spec_publisher_code","reselling_name":null,"expose_domains":true,"is_rtb":false,"reselling_exposure":"public","reselling_exposed_on":"2017-02-08
|
105
|
+
13:16:36","timezone":"EST5EDT","last_modified":"2017-02-08 13:16:36","max_learn_pct":0,"accept_demand_partner_usersync":null,"learn_bypass_cpm":5,"ad_quality_advanced_mode_enabled":true,"allow_report_on_default_imps":false,"inventory_source":null,"inventory_relationship":"undeclared","disclosure_status":"undisclosed","name":"spec
|
106
|
+
publisher","description":"","state":"active","default_site_id":null,"default_ad_profile_id":null,"billing_dba":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"billing_country":null,"accept_supply_partner_usersync":null,"accept_data_provider_usersync":null,"ym_profile_id":null,"allow_cpm_managed":true,"allow_cpm_external":true,"allow_cpa_managed":true,"allow_cpa_external":false,"allow_cpc_managed":true,"allow_cpc_external":false,"managed_cpc_bias_pct":100,"managed_cpa_bias_pct":100,"external_cpc_bias_pct":100,"external_cpa_bias_pct":100,"is_oo":false,"base_payment_rule_id":1192851,"base_ad_quality_rule_id":null,"currency":"USD","visibility_profile_id":null,"cpm_reselling_disabled":false,"cpc_reselling_disabled":false,"platform_ops_notes":null,"pitbull_segment_id":0,"pitbull_segment_value":0,"enable_cookie_tracking_default":true,"seller_page_cap_enabled":false,"inventory_source_name":null,"billing_internal_user":null,"labels":null,"placements":null,"external_inv_codes":null,"contact_info":null,"publisher_brand_exceptions":null,"contact":null},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":1,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":1,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"1801c633-6730-5585-bdd4-57c29bb9e979","warnings":[],"time":280.9751033783,"start_microtime":1486559796.1851,"version":"1.17.202","slave_lag":1041337,"member_last_modified_age":1486559796,"output_term":"publisher"}}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Wed, 08 Feb 2017 13:16:34 GMT
|
109
|
+
- request:
|
110
|
+
method: post
|
111
|
+
uri: https://api-test.appnexus.com/site?publisher_id=925481
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"site":{"name":"Site Name","code":"spec_site_code","url":"http://www.example.com","intended_audience":"general","audited":true}}'
|
115
|
+
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.11.0
|
118
|
+
Authorization:
|
119
|
+
- hbapi:171678:589b1a338dd46:nym2
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
124
|
+
Accept:
|
125
|
+
- "*/*"
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message: OK
|
130
|
+
headers:
|
131
|
+
Cache-Control:
|
132
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
133
|
+
Content-Length:
|
134
|
+
- '1419'
|
135
|
+
Content-Type:
|
136
|
+
- application/json
|
137
|
+
Date:
|
138
|
+
- Wed, 08 Feb 2017 13:16:36 GMT
|
139
|
+
Expires:
|
140
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
141
|
+
Pragma:
|
142
|
+
- no-cache
|
143
|
+
Server:
|
144
|
+
- Apache
|
145
|
+
Set-Cookie:
|
146
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1a338dd46%3Anym2; Path=/
|
147
|
+
X-Count-Read:
|
148
|
+
- user:9,member:5,serviceHostUser:0,serviceHostMember:0,hostUser:5,hostMember:5,ip:0
|
149
|
+
X-Count-Write:
|
150
|
+
- user:2,member:2,serviceHostUser:1,serviceHostMember:1,hostUser:2,hostMember:2,ip:0
|
151
|
+
X-Ratelimit-Read:
|
152
|
+
- '1000'
|
153
|
+
X-Ratelimit-Service:
|
154
|
+
- 1000-Default
|
155
|
+
X-Ratelimit-System:
|
156
|
+
- 1000-Default
|
157
|
+
X-Ratelimit-Write:
|
158
|
+
- '1000'
|
159
|
+
X-Route:
|
160
|
+
- "/site"
|
161
|
+
X-Route-Time:
|
162
|
+
- '414'
|
163
|
+
body:
|
164
|
+
encoding: UTF-8
|
165
|
+
string: '{"response":{"status":"OK","count":1,"id":2647501,"start_element":0,"num_elements":100,"site":{"id":2647501,"code":"spec_site_code","state":"active","publisher_id":925481,"last_modified":"2017-02-08
|
166
|
+
13:16:36","name":"Site Name","url":"http:\/\/www.example.com","primary_content_category_id":null,"intended_audience":"general","managed_optimization_zone_id":"159","rtb_optimization_zone_id":null,"audited":true,"publisher_name":"spec
|
167
|
+
publisher","supply_type":"web","creative_format_action":"exclude","mobile_app_instance":null,"placements":null,"content_categories":null,"inventory_attributes":null,"creative_formats":["text"],"allowed_click_actions":["click-to-web"],"marketplace_map":{"performance":false,"rtb":true,"an_audit_perf_only":false,"rtb_suspended":false,"deals_allowed":true,"deals_suspended":false}},"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":false,"db":"master","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":2,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":2,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"d679cea8-9c31-544b-9be3-f3a25d7a8687","warnings":[],"time":397.047996521,"start_microtime":1486559796.9011,"version":"1.17.202","slave_lag":1041339,"member_last_modified_age":1486559796,"output_term":"site"}}}'
|
168
|
+
http_version:
|
169
|
+
recorded_at: Wed, 08 Feb 2017 13:16:35 GMT
|
170
|
+
- request:
|
171
|
+
method: delete
|
172
|
+
uri: https://api-test.appnexus.com/site?id=2647501
|
173
|
+
body:
|
174
|
+
encoding: US-ASCII
|
175
|
+
string: ''
|
176
|
+
headers:
|
177
|
+
User-Agent:
|
178
|
+
- Faraday v0.11.0
|
179
|
+
Authorization:
|
180
|
+
- hbapi:171678:589b1a338dd46:nym2
|
181
|
+
Accept-Encoding:
|
182
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
183
|
+
Accept:
|
184
|
+
- "*/*"
|
185
|
+
response:
|
186
|
+
status:
|
187
|
+
code: 200
|
188
|
+
message: OK
|
189
|
+
headers:
|
190
|
+
Cache-Control:
|
191
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
192
|
+
Content-Length:
|
193
|
+
- '695'
|
194
|
+
Content-Type:
|
195
|
+
- application/json
|
196
|
+
Date:
|
197
|
+
- Wed, 08 Feb 2017 13:16:38 GMT
|
198
|
+
Expires:
|
199
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
200
|
+
Pragma:
|
201
|
+
- no-cache
|
202
|
+
Server:
|
203
|
+
- Apache
|
204
|
+
Set-Cookie:
|
205
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1a338dd46%3Anym2; Path=/
|
206
|
+
X-Count-Read:
|
207
|
+
- user:9,member:5,serviceHostUser:0,serviceHostMember:0,hostUser:5,hostMember:5,ip:0
|
208
|
+
X-Count-Write:
|
209
|
+
- user:3,member:3,serviceHostUser:2,serviceHostMember:2,hostUser:3,hostMember:3,ip:0
|
210
|
+
X-Ratelimit-Read:
|
211
|
+
- '1000'
|
212
|
+
X-Ratelimit-Service:
|
213
|
+
- 1000-Default
|
214
|
+
X-Ratelimit-System:
|
215
|
+
- 1000-Default
|
216
|
+
X-Ratelimit-Write:
|
217
|
+
- '1000'
|
218
|
+
X-Route:
|
219
|
+
- "/site"
|
220
|
+
X-Route-Time:
|
221
|
+
- '321'
|
222
|
+
body:
|
223
|
+
encoding: UTF-8
|
224
|
+
string: '{"response":{"status":"OK","count":0,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":3,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":3,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"48090099-f414-5610-9cbf-8842f57eefbd","warnings":[],"time":304.89706993103,"start_microtime":1486559798.0857,"version":"1.17.202","slave_lag":1041340,"member_last_modified_age":1486559798,"output_term":"not_found"}}}'
|
225
|
+
http_version:
|
226
|
+
recorded_at: Wed, 08 Feb 2017 13:16:36 GMT
|
227
|
+
- request:
|
228
|
+
method: delete
|
229
|
+
uri: https://api-test.appnexus.com/publisher?id=925481
|
230
|
+
body:
|
231
|
+
encoding: US-ASCII
|
232
|
+
string: ''
|
233
|
+
headers:
|
234
|
+
User-Agent:
|
235
|
+
- Faraday v0.11.0
|
236
|
+
Authorization:
|
237
|
+
- hbapi:171678:589b1a338dd46:nym2
|
238
|
+
Accept-Encoding:
|
239
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
240
|
+
Accept:
|
241
|
+
- "*/*"
|
242
|
+
response:
|
243
|
+
status:
|
244
|
+
code: 200
|
245
|
+
message: OK
|
246
|
+
headers:
|
247
|
+
Cache-Control:
|
248
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0;no-cache
|
249
|
+
Content-Length:
|
250
|
+
- '695'
|
251
|
+
Content-Type:
|
252
|
+
- application/json
|
253
|
+
Date:
|
254
|
+
- Wed, 08 Feb 2017 13:16:38 GMT
|
255
|
+
Expires:
|
256
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
257
|
+
Pragma:
|
258
|
+
- no-cache
|
259
|
+
Server:
|
260
|
+
- Apache
|
261
|
+
Set-Cookie:
|
262
|
+
- HBFAPI_SESSID=hbapi%3A171678%3A589b1a338dd46%3Anym2; Path=/
|
263
|
+
X-Count-Read:
|
264
|
+
- user:9,member:5,serviceHostUser:2,serviceHostMember:2,hostUser:5,hostMember:5,ip:0
|
265
|
+
X-Count-Write:
|
266
|
+
- user:4,member:4,serviceHostUser:2,serviceHostMember:2,hostUser:4,hostMember:4,ip:0
|
267
|
+
X-Ratelimit-Read:
|
268
|
+
- '1000'
|
269
|
+
X-Ratelimit-Service:
|
270
|
+
- 1000-Default
|
271
|
+
X-Ratelimit-System:
|
272
|
+
- 1000-Default
|
273
|
+
X-Ratelimit-Write:
|
274
|
+
- '1000'
|
275
|
+
X-Route:
|
276
|
+
- "/publisher"
|
277
|
+
X-Route-Time:
|
278
|
+
- '558'
|
279
|
+
body:
|
280
|
+
encoding: UTF-8
|
281
|
+
string: '{"response":{"status":"OK","count":1,"start_element":null,"num_elements":null,"dbg_info":{"instance":"01.hbapi.test104169.nym2","slave_hit":true,"db":"10.3.204.17","user::reads":9,"user::read_limit":1000,"user::read_limit_seconds":60,"user::writes":4,"user::write_limit":1000,"user::write_limit_seconds":60,"reads":5,"read_limit":1000,"read_limit_seconds":60,"writes":4,"write_limit":1000,"write_limit_seconds":60,"awesomesauce_cache_used":false,"count_cache_used":false,"uuid":"9e1fb9b7-7280-577c-9ef2-907e824ffdc8","warnings":[],"time":541.96286201477,"start_microtime":1486559798.9553,"version":"1.17.202","slave_lag":1041340,"member_last_modified_age":1486559798,"output_term":"not_found"}}}'
|
282
|
+
http_version:
|
283
|
+
recorded_at: Wed, 08 Feb 2017 13:16:37 GMT
|
284
|
+
recorded_with: VCR 3.0.3
|