swiftype 0.0.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.travis.yml +6 -0
- data/Gemfile +1 -1
- data/README.md +202 -283
- data/lib/data/ca-bundle.crt +3554 -0
- data/lib/swiftype.rb +7 -31
- data/lib/swiftype/client.rb +439 -11
- data/lib/swiftype/configuration.rb +29 -4
- data/lib/swiftype/exceptions.rb +2 -0
- data/lib/swiftype/ext/backport-uri.rb +33 -0
- data/lib/swiftype/request.rb +88 -20
- data/lib/swiftype/result_set.rb +43 -6
- data/lib/swiftype/sso.rb +20 -0
- data/lib/swiftype/version.rb +1 -1
- data/spec/client_spec.rb +576 -0
- data/spec/configuration_spec.rb +36 -0
- data/spec/deprecated_spec.rb +20 -0
- data/spec/fixtures/vcr/analytics_autoselects.yml +55 -0
- data/spec/fixtures/vcr/analytics_autoselects_with_document_type.yml +55 -0
- data/spec/fixtures/vcr/analytics_autoselects_with_document_type_and_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_autoselects_with_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_clicks.yml +55 -0
- data/spec/fixtures/vcr/analytics_clicks_with_document_type.yml +55 -0
- data/spec/fixtures/vcr/analytics_clicks_with_document_type_and_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_clicks_with_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_searches.yml +55 -0
- data/spec/fixtures/vcr/analytics_searches_with_document_type_and_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_searches_with_time_range.yml +55 -0
- data/spec/fixtures/vcr/analytics_searchs_with_document_type.yml +55 -0
- data/spec/fixtures/vcr/analytics_top_no_result_queries.yml +55 -0
- data/spec/fixtures/vcr/analytics_top_no_result_queries_paginated.yml +55 -0
- data/spec/fixtures/vcr/analytics_top_queries.yml +55 -0
- data/spec/fixtures/vcr/analytics_top_queries_paginated.yml +55 -0
- data/spec/fixtures/vcr/analytics_top_queries_too_large.yml +51 -0
- data/spec/fixtures/vcr/bulk_create_documents.yml +49 -0
- data/spec/fixtures/vcr/bulk_create_or_update_documents_failure.yml +45 -0
- data/spec/fixtures/vcr/bulk_create_or_update_documents_success.yml +49 -0
- data/spec/fixtures/vcr/bulk_destroy_documents.yml +45 -0
- data/spec/fixtures/vcr/crawl_url.yml +45 -0
- data/spec/fixtures/vcr/create_document.yml +48 -0
- data/spec/fixtures/vcr/create_document_type.yml +45 -0
- data/spec/fixtures/vcr/create_domain.yml +45 -0
- data/spec/fixtures/vcr/create_engine.yml +45 -0
- data/spec/fixtures/vcr/create_or_update_document_create.yml +47 -0
- data/spec/fixtures/vcr/create_or_update_document_update.yml +47 -0
- data/spec/fixtures/vcr/create_user.yml +45 -0
- data/spec/fixtures/vcr/destroy_document.yml +41 -0
- data/spec/fixtures/vcr/destroy_document_type.yml +41 -0
- data/spec/fixtures/vcr/destroy_domain.yml +41 -0
- data/spec/fixtures/vcr/destroy_engine.yml +41 -0
- data/spec/fixtures/vcr/destroy_non_existent_document_type.yml +43 -0
- data/spec/fixtures/vcr/document_type_search.yml +60 -0
- data/spec/fixtures/vcr/document_type_search_pagination.yml +45 -0
- data/spec/fixtures/vcr/document_type_suggest.yml +50 -0
- data/spec/fixtures/vcr/document_type_suggest_pagination.yml +45 -0
- data/spec/fixtures/vcr/engine_search.yml +64 -0
- data/spec/fixtures/vcr/engine_search_facets.yml +162 -0
- data/spec/fixtures/vcr/engine_search_pagination.yml +45 -0
- data/spec/fixtures/vcr/engine_suggest.yml +52 -0
- data/spec/fixtures/vcr/engine_suggest_pagination.yml +45 -0
- data/spec/fixtures/vcr/find_document.yml +47 -0
- data/spec/fixtures/vcr/find_document_type.yml +45 -0
- data/spec/fixtures/vcr/find_domain.yml +45 -0
- data/spec/fixtures/vcr/find_domain_failure.yml +43 -0
- data/spec/fixtures/vcr/find_engine.yml +45 -0
- data/spec/fixtures/vcr/list_document_type.yml +45 -0
- data/spec/fixtures/vcr/list_documents.yml +68 -0
- data/spec/fixtures/vcr/list_documents_with_pagination.yml +68 -0
- data/spec/fixtures/vcr/list_domains.yml +45 -0
- data/spec/fixtures/vcr/list_engines.yml +46 -0
- data/spec/fixtures/vcr/list_users.yml +45 -0
- data/spec/fixtures/vcr/list_users_with_pagination.yml +45 -0
- data/spec/fixtures/vcr/log_clickthrough_failure.yml +43 -0
- data/spec/fixtures/vcr/log_clickthrough_success.yml +45 -0
- data/spec/fixtures/vcr/recrawl_domain_failure.yml +44 -0
- data/spec/fixtures/vcr/recrawl_domain_success.yml +45 -0
- data/spec/fixtures/vcr/show_user.yml +45 -0
- data/spec/fixtures/vcr/update_document.yml +47 -0
- data/spec/fixtures/vcr/update_document_unknown_field_failure.yml +45 -0
- data/spec/fixtures/vcr/update_documents_failure_non_existent_document.yml +45 -0
- data/spec/fixtures/vcr/update_documents_success.yml +45 -0
- data/spec/fixtures/vcr/users_client_secret_incorrect.yml +42 -0
- data/spec/fixtures/vcr/users_no_api_key.yml +42 -0
- data/spec/fixtures/vcr/users_no_client_id_or_secret.yml +43 -0
- data/spec/platform_spec.rb +95 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/ssl_spec.rb +34 -0
- data/spec/sso_spec.rb +24 -0
- data/swiftype.gemspec +10 -11
- metadata +183 -52
- data/lib/swiftype/base_model.rb +0 -89
- data/lib/swiftype/connection.rb +0 -47
- data/lib/swiftype/document.rb +0 -17
- data/lib/swiftype/document_type.rb +0 -69
- data/lib/swiftype/easy.rb +0 -77
- data/lib/swiftype/engine.rb +0 -33
- data/lib/swiftype/search.rb +0 -23
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Configuration' do
|
4
|
+
context '.authenticated_url' do
|
5
|
+
context 'with non-standard port number' do
|
6
|
+
it 'sets the API key and endpoint' do
|
7
|
+
Swiftype.authenticated_url = 'http://testkey:@localhost:1234/api/v1'
|
8
|
+
Swiftype.api_key.should == 'testkey'
|
9
|
+
Swiftype.endpoint.should == 'http://localhost:1234/api/v1/'
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'with implicit port number' do
|
13
|
+
Swiftype.authenticated_url = 'https://testkey:@api.swiftype.com/api/v1'
|
14
|
+
Swiftype.api_key.should == 'testkey'
|
15
|
+
Swiftype.endpoint.should == 'https://api.swiftype.com/api/v1/'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context '.endpoint' do
|
21
|
+
context 'with a trailing /' do
|
22
|
+
it 'adds / to the end of of the URL' do
|
23
|
+
Swiftype.endpoint = 'https://api.swiftype.com/api/v1'
|
24
|
+
Swiftype.endpoint.should == 'https://api.swiftype.com/api/v1/'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'with a trailing /' do
|
29
|
+
it 'leaves the URL alone' do
|
30
|
+
Swiftype.endpoint = 'https://api.swiftype.com/api/v1/'
|
31
|
+
Swiftype.endpoint.should == 'https://api.swiftype.com/api/v1/'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'deprecated classes and methods' do
|
4
|
+
context 'Swiftype::Easy' do
|
5
|
+
it 'returns Swiftype::Client' do
|
6
|
+
Swiftype::Easy.should == Swiftype::Client
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
context 'Swiftype::Easy.configure' do
|
11
|
+
it 'calls warn and calls Swiftype.configure' do
|
12
|
+
Swiftype::Client.should_receive(:warn)
|
13
|
+
Swiftype::Easy.configure do |config|
|
14
|
+
config.api_key = 'got set'
|
15
|
+
end
|
16
|
+
|
17
|
+
Swiftype.api_key.should == 'got set'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/autoselects.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Fri, 13 Sep 2013 00:01:12 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"5794f59d1c925941f162d1e441d7a1d8"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTk3ZDNhZTNkNzg5ODEyNTVmMzhhMTA2YzlmN2RkNGYxBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--341d8494621560116b9dd4e5f43a9eba350d1582;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 5dd05df0f299100e39049fb01613e7c1
|
46
|
+
X-Runtime:
|
47
|
+
- '0.307775'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",1],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0],["2013-09-02",1],["2013-09-01",0],["2013-08-31",0],["2013-08-30",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Fri, 13 Sep 2013 00:01:12 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/autoselects.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Mon, 16 Sep 2013 20:13:50 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"22ecda56f9548f31bf04990eb1d544c0"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTdjNzk4NTJmZDBjNjg5OTA5ZWFkYTU3NDRjYzMxZDM2BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--74639b1cb74d827a6aab9de4a4573b9e6b7397ce;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 09bafe68057ff2c10658113b333eaf5f
|
46
|
+
X-Runtime:
|
47
|
+
- '0.079235'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-09-16",0],["2013-09-15",0],["2013-09-14",0],["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",1],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0],["2013-09-02",1]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 16 Sep 2013 20:13:50 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/autoselects.json?end_date=2013-07-07&start_date=2013-07-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Mon, 16 Sep 2013 20:14:51 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"832ef2141a53df6109cbdff72cee0467"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTg5Yzk3MjMwMTA2NzhjOTIwNjc1ZWE3YWZiZTliODBiBjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--eabb926b321b824d15bf9ef8b9ea2f389251fc09;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 11098504784b9e432f142eb6987d6a49
|
46
|
+
X-Runtime:
|
47
|
+
- '0.075667'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-07-07",0],["2013-07-06",0],["2013-07-05",0],["2013-07-04",0],["2013-07-03",0],["2013-07-02",1],["2013-07-01",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 16 Sep 2013 20:14:51 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/autoselects.json?end_date=2013-07-07&start_date=2013-07-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Fri, 13 Sep 2013 00:01:11 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"832ef2141a53df6109cbdff72cee0467"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZjYTI3NWFmM2Y3YThjM2M3M2U3OWUzYjliYzNkYjc4BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--098855c66eb1b3848d58b08b736d0152b8a41b29;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 184e8ee03d7064d5a34b3f8efb9c6a69
|
46
|
+
X-Runtime:
|
47
|
+
- '0.430865'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-07-07",0],["2013-07-06",0],["2013-07-05",0],["2013-07-04",0],["2013-07-03",0],["2013-07-02",1],["2013-07-01",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Fri, 13 Sep 2013 00:01:11 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/analytics/clicks.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Tue, 17 Sep 2013 00:07:18 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"93d2545ee9f722b709a3085753d2297c"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZmNTNmMGYyOGFmMDU0MDM1NDQ1MGIxOWM4MDc5ZWQ0BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--934948c1059e91111c29071ea4d6ceeba92eef70;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 95bb207f0e81e9000d8bd38d0cdfcf76
|
46
|
+
X-Runtime:
|
47
|
+
- '0.049615'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-09-17",0],["2013-09-16",0],["2013-09-15",0],["2013-09-14",0],["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",0],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 17 Sep 2013 00:07:18 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/clicks.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Tue, 17 Sep 2013 00:07:18 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"93d2545ee9f722b709a3085753d2297c"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZmNTNmMGYyOGFmMDU0MDM1NDQ1MGIxOWM4MDc5ZWQ0BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--934948c1059e91111c29071ea4d6ceeba92eef70;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 95bb207f0e81e9000d8bd38d0cdfcf76
|
46
|
+
X-Runtime:
|
47
|
+
- '0.049615'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-09-17",0],["2013-09-16",0],["2013-09-15",0],["2013-09-14",0],["2013-09-13",0],["2013-09-12",0],["2013-09-11",0],["2013-09-10",0],["2013-09-09",0],["2013-09-08",0],["2013-09-07",0],["2013-09-06",0],["2013-09-05",0],["2013-09-04",0],["2013-09-03",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 17 Sep 2013 00:07:18 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://hello:@localhost:3000/api/v1/engines/recursion/document_types/page/analytics/clicks.json?end_date=2013-07-07&start_date=2013-07-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Swiftype-Ruby/1.0.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- ngx_openresty/1.2.7.8
|
23
|
+
Date:
|
24
|
+
- Tue, 17 Sep 2013 00:07:17 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- IE=Edge,chrome=1
|
37
|
+
Etag:
|
38
|
+
- ! '"b55e3fc5da2c4b1937f7bb6580de94f6"'
|
39
|
+
Cache-Control:
|
40
|
+
- must-revalidate, private, max-age=0
|
41
|
+
Set-Cookie:
|
42
|
+
- _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTc5Njk1Y2I4MDVkM2JkZmI0MmJjYTU3OTdkMjk5NGE1BjsAVEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjsAVFsISSIJVXNlcgY7AEZbBlU6Gk1vcGVkOjpCU09OOjpPYmplY3RJZCIRT6oFg9uoiHqsAAABSSIiJDJhJDEwJE1CYU9abE5nbU01T3hvMFI1Zy5Cay4GOwBU--448a73b8c641507815ddaf760803c397c7d5ea14;
|
43
|
+
path=/; HttpOnly; secure
|
44
|
+
X-Request-Id:
|
45
|
+
- 302a83a9093a45ffd0b652beafaf3870
|
46
|
+
X-Runtime:
|
47
|
+
- '0.064719'
|
48
|
+
X-Rack-Cache:
|
49
|
+
- miss
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '[["2013-07-07",0],["2013-07-06",0],["2013-07-05",0],["2013-07-04",0],["2013-07-03",0],["2013-07-02",0],["2013-07-01",0]]'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Tue, 17 Sep 2013 00:07:17 GMT
|
55
|
+
recorded_with: VCR 2.5.0
|