serp_metrics 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +8 -0
  4. data/LICENSE +22 -0
  5. data/README.md +25 -0
  6. data/Rakefile +1 -0
  7. data/lib/serp_metrics.rb +25 -0
  8. data/lib/serp_metrics/client.rb +34 -0
  9. data/lib/serp_metrics/command_sets/account.rb +13 -0
  10. data/lib/serp_metrics/command_sets/base.rb +47 -0
  11. data/lib/serp_metrics/command_sets/engines.rb +9 -0
  12. data/lib/serp_metrics/command_sets/flux.rb +13 -0
  13. data/lib/serp_metrics/command_sets/keywords.rb +41 -0
  14. data/lib/serp_metrics/command_sets/priorities.rb +23 -0
  15. data/lib/serp_metrics/commands.rb +23 -0
  16. data/lib/serp_metrics/response.rb +5 -0
  17. data/lib/serp_metrics/version.rb +3 -0
  18. data/serp_metrics.gemspec +22 -0
  19. data/spec/api_credentials.yml.sample +2 -0
  20. data/spec/cassettes/serp_metrics__command_sets__account/credit_fetches_credit_information.yml +46 -0
  21. data/spec/cassettes/serp_metrics__command_sets__account/time_fetches_time.yml +38 -0
  22. data/spec/cassettes/serp_metrics__command_sets__engines/codes_fetches_search_engine_codes.yml +221 -0
  23. data/spec/cassettes/serp_metrics__command_sets__flux/flux_fetches_flux_trend.yml +46 -0
  24. data/spec/cassettes/serp_metrics__command_sets__keywords/add_adds_keyword.yml +163 -0
  25. data/spec/cassettes/serp_metrics__command_sets__keywords/all_retrieves_keywords.yml +206 -0
  26. data/spec/cassettes/serp_metrics__command_sets__keywords/check_retrieves_checks.yml +206 -0
  27. data/spec/cassettes/serp_metrics__command_sets__keywords/remove_removes_keyword.yml +200 -0
  28. data/spec/cassettes/serp_metrics__command_sets__keywords/serp_retrieves_serp_for_check.yml +165 -0
  29. data/spec/cassettes/serp_metrics__command_sets__priorities/add_with_location_adds_priority.yml +40 -0
  30. data/spec/cassettes/serp_metrics__command_sets__priorities/add_without_location_adds_priority.yml +40 -0
  31. data/spec/cassettes/serp_metrics__command_sets__priorities/get_checks_priority.yml +79 -0
  32. data/spec/lib/serp_metrics/client_spec.rb +27 -0
  33. data/spec/lib/serp_metrics/command_sets/account_spec.rb +27 -0
  34. data/spec/lib/serp_metrics/command_sets/engines_spec.rb +22 -0
  35. data/spec/lib/serp_metrics/command_sets/flux_spec.rb +23 -0
  36. data/spec/lib/serp_metrics/command_sets/keywords_spec.rb +90 -0
  37. data/spec/lib/serp_metrics/command_sets/priorities_spec.rb +51 -0
  38. data/spec/lib/serp_metrics/commands_spec.rb +62 -0
  39. data/spec/lib/serp_metrics/response_spec.rb +9 -0
  40. data/spec/lib/serp_metrics/version_spec.rb +8 -0
  41. data/spec/lib/serp_metrics_spec.rb +14 -0
  42. data/spec/spec_helper.rb +61 -0
  43. metadata +143 -0
@@ -0,0 +1,206 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.serpmetrics.com/keywords/add
6
+ body:
7
+ encoding: US-ASCII
8
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword%22%3A%22restaurants%22%2C%22engines%22%3A%5B%22google_en-us%22%5D%7D
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ response:
13
+ status:
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Mon, 18 Mar 2013 05:35:38 GMT
21
+ Content-Type:
22
+ - application/json; charset=UTF-8
23
+ Content-Length:
24
+ - '115'
25
+ Connection:
26
+ - keep-alive
27
+ Cache-Control:
28
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
29
+ Expires:
30
+ - Thu, 19 Nov 1981 08:52:00 GMT
31
+ Pragma:
32
+ - no-cache
33
+ Set-Cookie:
34
+ - app=k15reutg42ir7ahc85veg2no27; path=/; HttpOnly
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":"ok","data":{"keyword_id":"5146926072484b125b000000","keyword":"restaurants","engines":["google_en-us"]}}'
38
+ http_version: !!null
39
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
40
+ - request:
41
+ method: post
42
+ uri: http://api.serpmetrics.com/keywords/check
43
+ body:
44
+ encoding: US-ASCII
45
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword_id%22%3A%225146926072484b125b000000%22%2C%22engine%22%3A%22google_en-us%22%2C%22limit%22%3A10%7D
46
+ headers:
47
+ Content-Type:
48
+ - application/x-www-form-urlencoded
49
+ response:
50
+ status:
51
+ code: 200
52
+ message: OK
53
+ headers:
54
+ Server:
55
+ - nginx
56
+ Date:
57
+ - Mon, 18 Mar 2013 05:35:39 GMT
58
+ Content-Type:
59
+ - application/json; charset=UTF-8
60
+ Content-Length:
61
+ - '165'
62
+ Connection:
63
+ - keep-alive
64
+ Vary:
65
+ - Accept-Encoding
66
+ Cache-Control:
67
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
68
+ Expires:
69
+ - Thu, 19 Nov 1981 08:52:00 GMT
70
+ Pragma:
71
+ - no-cache
72
+ Set-Cookie:
73
+ - app=qvmfojbhh76jpvik1jb5mjdne3; path=/; HttpOnly
74
+ X-Cache:
75
+ - OrchestraCache
76
+ X-Orchestra-Scheme:
77
+ - http
78
+ body:
79
+ encoding: US-ASCII
80
+ string: ! '{"status":"ok","data":{"keyword_id":"5146926072484b125b000000","engine":"google_en-us","checks":{"1363579802":"5146939bc787725c6b010000"}},"request_time":1363585096}'
81
+ http_version: !!null
82
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
83
+ - request:
84
+ method: post
85
+ uri: http://api.serpmetrics.com/keywords/all
86
+ body:
87
+ encoding: US-ASCII
88
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
89
+ headers:
90
+ Content-Type:
91
+ - application/x-www-form-urlencoded
92
+ response:
93
+ status:
94
+ code: 200
95
+ message: OK
96
+ headers:
97
+ Server:
98
+ - nginx
99
+ Date:
100
+ - Mon, 18 Mar 2013 05:35:40 GMT
101
+ Content-Type:
102
+ - application/json; charset=UTF-8
103
+ Content-Length:
104
+ - '129'
105
+ Connection:
106
+ - keep-alive
107
+ Vary:
108
+ - Accept-Encoding
109
+ Cache-Control:
110
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
111
+ Expires:
112
+ - Thu, 19 Nov 1981 08:52:00 GMT
113
+ Pragma:
114
+ - no-cache
115
+ Set-Cookie:
116
+ - app=fhruq7su10mecu69bou008vg51; path=/; HttpOnly
117
+ X-Cache:
118
+ - OrchestraCache
119
+ X-Orchestra-Scheme:
120
+ - http
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ! '{"status":"ok","request_time":1363585097,"data":{"5146926072484b125b000000":{"phrase":"restaurants","engines":["google_en-us"]}}}'
124
+ http_version: !!null
125
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
126
+ - request:
127
+ method: post
128
+ uri: http://api.serpmetrics.com/keywords/delete
129
+ body:
130
+ encoding: US-ASCII
131
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword_id%22%3A%225146926072484b125b000000%22%7D
132
+ headers:
133
+ Content-Type:
134
+ - application/x-www-form-urlencoded
135
+ response:
136
+ status:
137
+ code: 201
138
+ message: Created
139
+ headers:
140
+ Server:
141
+ - nginx
142
+ Date:
143
+ - Mon, 18 Mar 2013 05:35:40 GMT
144
+ Content-Type:
145
+ - application/json; charset=UTF-8
146
+ Content-Length:
147
+ - '106'
148
+ Connection:
149
+ - keep-alive
150
+ Cache-Control:
151
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
152
+ Expires:
153
+ - Thu, 19 Nov 1981 08:52:00 GMT
154
+ Pragma:
155
+ - no-cache
156
+ Set-Cookie:
157
+ - app=oobo0vdevu65ropc240k0sg3u0; path=/; HttpOnly
158
+ body:
159
+ encoding: US-ASCII
160
+ string: ! '{"status":"ok","request_time":1363585098,"data":[{"keyword_id":"5146926072484b125b000000","status":"ok"}]}'
161
+ http_version: !!null
162
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
163
+ - request:
164
+ method: post
165
+ uri: http://api.serpmetrics.com/keywords/all
166
+ body:
167
+ encoding: US-ASCII
168
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
169
+ headers:
170
+ Content-Type:
171
+ - application/x-www-form-urlencoded
172
+ response:
173
+ status:
174
+ code: 200
175
+ message: OK
176
+ headers:
177
+ Server:
178
+ - nginx
179
+ Date:
180
+ - Mon, 18 Mar 2013 05:35:41 GMT
181
+ Content-Type:
182
+ - application/json; charset=UTF-8
183
+ Content-Length:
184
+ - '51'
185
+ Connection:
186
+ - keep-alive
187
+ Vary:
188
+ - Accept-Encoding
189
+ Cache-Control:
190
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
191
+ Expires:
192
+ - Thu, 19 Nov 1981 08:52:00 GMT
193
+ Pragma:
194
+ - no-cache
195
+ Set-Cookie:
196
+ - app=cucmq7791diqqrsebdi2lr7et0; path=/; HttpOnly
197
+ X-Cache:
198
+ - OrchestraCache
199
+ X-Orchestra-Scheme:
200
+ - http
201
+ body:
202
+ encoding: US-ASCII
203
+ string: ! '{"status":"ok","request_time":1363585098,"data":[]}'
204
+ http_version: !!null
205
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
206
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,200 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.serpmetrics.com/keywords/add
6
+ body:
7
+ encoding: US-ASCII
8
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword%22%3A%22restaurants%22%2C%22engines%22%3A%5B%22google_en-us%22%5D%7D
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ response:
13
+ status:
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Mon, 18 Mar 2013 05:35:34 GMT
21
+ Content-Type:
22
+ - application/json; charset=UTF-8
23
+ Content-Length:
24
+ - '115'
25
+ Connection:
26
+ - keep-alive
27
+ Cache-Control:
28
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
29
+ Expires:
30
+ - Thu, 19 Nov 1981 08:52:00 GMT
31
+ Pragma:
32
+ - no-cache
33
+ Set-Cookie:
34
+ - app=as3renekp9m4mdfejdpfc1vcs1; path=/; HttpOnly
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! '{"status":"ok","data":{"keyword_id":"5146926072484b125b000000","keyword":"restaurants","engines":["google_en-us"]}}'
38
+ http_version: !!null
39
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
40
+ - request:
41
+ method: post
42
+ uri: http://api.serpmetrics.com/keywords/delete
43
+ body:
44
+ encoding: US-ASCII
45
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword_id%22%3A%225146926072484b125b000000%22%7D
46
+ headers:
47
+ Content-Type:
48
+ - application/x-www-form-urlencoded
49
+ response:
50
+ status:
51
+ code: 201
52
+ message: Created
53
+ headers:
54
+ Server:
55
+ - nginx
56
+ Date:
57
+ - Mon, 18 Mar 2013 05:35:35 GMT
58
+ Content-Type:
59
+ - application/json; charset=UTF-8
60
+ Content-Length:
61
+ - '106'
62
+ Connection:
63
+ - keep-alive
64
+ Cache-Control:
65
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
66
+ Expires:
67
+ - Thu, 19 Nov 1981 08:52:00 GMT
68
+ Pragma:
69
+ - no-cache
70
+ Set-Cookie:
71
+ - app=juucrh5u5el1tu6icc0sidirk3; path=/; HttpOnly
72
+ body:
73
+ encoding: US-ASCII
74
+ string: ! '{"status":"ok","request_time":1363585092,"data":[{"keyword_id":"5146926072484b125b000000","status":"ok"}]}'
75
+ http_version: !!null
76
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
77
+ - request:
78
+ method: post
79
+ uri: http://api.serpmetrics.com/keywords/delete
80
+ body:
81
+ encoding: US-ASCII
82
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword_id%22%3A%225146926072484b125b000000%22%7D
83
+ headers:
84
+ Content-Type:
85
+ - application/x-www-form-urlencoded
86
+ response:
87
+ status:
88
+ code: 201
89
+ message: Created
90
+ headers:
91
+ Server:
92
+ - nginx
93
+ Date:
94
+ - Mon, 18 Mar 2013 05:35:36 GMT
95
+ Content-Type:
96
+ - application/json; charset=UTF-8
97
+ Content-Length:
98
+ - '110'
99
+ Connection:
100
+ - keep-alive
101
+ Cache-Control:
102
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
103
+ Expires:
104
+ - Thu, 19 Nov 1981 08:52:00 GMT
105
+ Pragma:
106
+ - no-cache
107
+ Set-Cookie:
108
+ - app=0mip433jnlgo4avrmaehglvts0; path=/; HttpOnly
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ! '{"status":"ok","request_time":1363585094,"data":[{"keyword_id":"5146926072484b125b000000","status":"failed"}]}'
112
+ http_version: !!null
113
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
114
+ - request:
115
+ method: post
116
+ uri: http://api.serpmetrics.com/keywords/all
117
+ body:
118
+ encoding: US-ASCII
119
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
120
+ headers:
121
+ Content-Type:
122
+ - application/x-www-form-urlencoded
123
+ response:
124
+ status:
125
+ code: 200
126
+ message: OK
127
+ headers:
128
+ Server:
129
+ - nginx
130
+ Date:
131
+ - Mon, 18 Mar 2013 05:35:37 GMT
132
+ Content-Type:
133
+ - application/json; charset=UTF-8
134
+ Content-Length:
135
+ - '51'
136
+ Connection:
137
+ - keep-alive
138
+ Vary:
139
+ - Accept-Encoding
140
+ Cache-Control:
141
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
142
+ Expires:
143
+ - Thu, 19 Nov 1981 08:52:00 GMT
144
+ Pragma:
145
+ - no-cache
146
+ Set-Cookie:
147
+ - app=j4c7abcmpprugh5qskulog24h4; path=/; HttpOnly
148
+ X-Cache:
149
+ - OrchestraCache
150
+ X-Orchestra-Scheme:
151
+ - http
152
+ body:
153
+ encoding: US-ASCII
154
+ string: ! '{"status":"ok","request_time":1363585094,"data":[]}'
155
+ http_version: !!null
156
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
157
+ - request:
158
+ method: post
159
+ uri: http://api.serpmetrics.com/keywords/all
160
+ body:
161
+ encoding: US-ASCII
162
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
163
+ headers:
164
+ Content-Type:
165
+ - application/x-www-form-urlencoded
166
+ response:
167
+ status:
168
+ code: 200
169
+ message: OK
170
+ headers:
171
+ Server:
172
+ - nginx
173
+ Date:
174
+ - Mon, 18 Mar 2013 05:35:37 GMT
175
+ Content-Type:
176
+ - application/json; charset=UTF-8
177
+ Content-Length:
178
+ - '51'
179
+ Connection:
180
+ - keep-alive
181
+ Vary:
182
+ - Accept-Encoding
183
+ Cache-Control:
184
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
185
+ Expires:
186
+ - Thu, 19 Nov 1981 08:52:00 GMT
187
+ Pragma:
188
+ - no-cache
189
+ Set-Cookie:
190
+ - app=o7nm67jdvhj52mlk7373govbs6; path=/; HttpOnly
191
+ X-Cache:
192
+ - OrchestraCache
193
+ X-Orchestra-Scheme:
194
+ - http
195
+ body:
196
+ encoding: US-ASCII
197
+ string: ! '{"status":"ok","request_time":1363585095,"data":[]}'
198
+ http_version: !!null
199
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
200
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,165 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.serpmetrics.com/keywords/serp
6
+ body:
7
+ encoding: US-ASCII
8
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22check_id%22%3A%2203bcc63a-dc00-4a41-8010-4fc3346e85b5%22%2C%22domain%22%3Anull%7D
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ response:
13
+ status:
14
+ code: 404
15
+ message: Not Found
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Mon, 18 Mar 2013 05:35:31 GMT
21
+ Content-Type:
22
+ - application/json; charset=UTF-8
23
+ Content-Length:
24
+ - '96'
25
+ Connection:
26
+ - keep-alive
27
+ Vary:
28
+ - Accept-Encoding
29
+ Cache-Control:
30
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
31
+ Expires:
32
+ - Thu, 19 Nov 1981 08:52:00 GMT
33
+ Pragma:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - app=7p5nv2o0cgbi9k2arrbiam2of2; path=/; HttpOnly
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! '{"status":"error","message":"Supplied check_id not found: 03bcc63a-dc00-4a41-8010-4fc3346e85b5"}'
40
+ http_version: !!null
41
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
42
+ - request:
43
+ method: post
44
+ uri: http://api.serpmetrics.com/keywords/all
45
+ body:
46
+ encoding: US-ASCII
47
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
48
+ headers:
49
+ Content-Type:
50
+ - application/x-www-form-urlencoded
51
+ response:
52
+ status:
53
+ code: 200
54
+ message: OK
55
+ headers:
56
+ Server:
57
+ - nginx
58
+ Date:
59
+ - Mon, 18 Mar 2013 05:35:32 GMT
60
+ Content-Type:
61
+ - application/json; charset=UTF-8
62
+ Content-Length:
63
+ - '129'
64
+ Connection:
65
+ - keep-alive
66
+ Vary:
67
+ - Accept-Encoding
68
+ Cache-Control:
69
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
70
+ Expires:
71
+ - Thu, 19 Nov 1981 08:52:00 GMT
72
+ Pragma:
73
+ - no-cache
74
+ Set-Cookie:
75
+ - app=qmgnknis4s88dmq2aqi97ee4e7; path=/; HttpOnly
76
+ X-Cache:
77
+ - OrchestraCache
78
+ X-Orchestra-Scheme:
79
+ - http
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{"status":"ok","request_time":1363585090,"data":{"5146926072484b125b000000":{"phrase":"restaurants","engines":["google_en-us"]}}}'
83
+ http_version: !!null
84
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
85
+ - request:
86
+ method: post
87
+ uri: http://api.serpmetrics.com/keywords/delete
88
+ body:
89
+ encoding: US-ASCII
90
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D&params=%7B%22keyword_id%22%3A%225146926072484b125b000000%22%7D
91
+ headers:
92
+ Content-Type:
93
+ - application/x-www-form-urlencoded
94
+ response:
95
+ status:
96
+ code: 201
97
+ message: Created
98
+ headers:
99
+ Server:
100
+ - nginx
101
+ Date:
102
+ - Mon, 18 Mar 2013 05:35:33 GMT
103
+ Content-Type:
104
+ - application/json; charset=UTF-8
105
+ Content-Length:
106
+ - '106'
107
+ Connection:
108
+ - keep-alive
109
+ Cache-Control:
110
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
111
+ Expires:
112
+ - Thu, 19 Nov 1981 08:52:00 GMT
113
+ Pragma:
114
+ - no-cache
115
+ Set-Cookie:
116
+ - app=c8arb0b1kp67671t6ulhg1m1l3; path=/; HttpOnly
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ! '{"status":"ok","request_time":1363585090,"data":[{"keyword_id":"5146926072484b125b000000","status":"ok"}]}'
120
+ http_version: !!null
121
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
122
+ - request:
123
+ method: post
124
+ uri: http://api.serpmetrics.com/keywords/all
125
+ body:
126
+ encoding: US-ASCII
127
+ string: key=h31x%25sd22hgjd2s&ts=1363584772&auth=lROO29qiF4QDoLetbhqb2gKopwnfB%2Bo%2F3g7RGDPcXx8%3D
128
+ headers:
129
+ Content-Type:
130
+ - application/x-www-form-urlencoded
131
+ response:
132
+ status:
133
+ code: 200
134
+ message: OK
135
+ headers:
136
+ Server:
137
+ - nginx
138
+ Date:
139
+ - Mon, 18 Mar 2013 05:35:33 GMT
140
+ Content-Type:
141
+ - application/json; charset=UTF-8
142
+ Content-Length:
143
+ - '51'
144
+ Connection:
145
+ - keep-alive
146
+ Vary:
147
+ - Accept-Encoding
148
+ Cache-Control:
149
+ - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
150
+ Expires:
151
+ - Thu, 19 Nov 1981 08:52:00 GMT
152
+ Pragma:
153
+ - no-cache
154
+ Set-Cookie:
155
+ - app=pi274dh96jblq3gk01thsvcba3; path=/; HttpOnly
156
+ X-Cache:
157
+ - OrchestraCache
158
+ X-Orchestra-Scheme:
159
+ - http
160
+ body:
161
+ encoding: US-ASCII
162
+ string: ! '{"status":"ok","request_time":1363585091,"data":[]}'
163
+ http_version: !!null
164
+ recorded_at: Mon, 18 Mar 2013 05:32:52 GMT
165
+ recorded_with: VCR 2.4.0