serpscan 0.0.2 → 0.1.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 +2 -2
- data/lib/serpscan/api.rb +2 -1
- data/lib/serpscan/keyword.rb +2 -1
- data/lib/serpscan/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +11 -10
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_alltime_change.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_current_rank.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_day_change.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_initial_rank.yml +8 -8
- data/spec/fixtures/vcr_cassettes/{Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml → Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_month_change.yml} +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_phrase.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_engine_country_id.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_volume.yml +8 -8
- data/spec/fixtures/vcr_cassettes/{Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml → Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_website_id.yml} +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_week_change.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_countries.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_title.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_SearchEngine_objects.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_url.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_Website_objects.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_a_paginated_array_of_keyword_objects.yml +18 -590
- data/spec/lib/serpscan/keyword_spec.rb +1 -1
- data/spec/lib/serpscan/website_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- metadata +6 -8
- data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_an_array_of_keyword_objects.yml +0 -90
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/keywords/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"55bbf33bfa501ca7c51423cdd6691e40"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- ed3eef46c880913d507e27f7f86fda67
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024864'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '223'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
|
43
|
+
string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/keywords/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"55bbf33bfa501ca7c51423cdd6691e40"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- c181753d244e18acc4ecf05cea2f6e38
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.023753'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '223'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
|
43
|
+
string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/keywords/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"55bbf33bfa501ca7c51423cdd6691e40"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- b817dbea13a65328c0d4beca8a4ea006
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.025464'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '223'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"
|
43
|
+
string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/keywords/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,24 +23,24 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"55bbf33bfa501ca7c51423cdd6691e40"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- ce5d4ff49a4d5aed8386ce15a89f1873
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.023882'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '223'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
|
43
|
+
string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/search_engines/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -27,13 +27,13 @@ http_interactions:
|
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- cf0cdf638c6c200e794b2c27098dcbe8
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024232'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
38
|
- '86'
|
39
39
|
Connection:
|
@@ -42,5 +42,5 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/search_engines/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -27,13 +27,13 @@ http_interactions:
|
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 807f554494a8f68d068830da7502e8da
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.026559'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
38
|
- '86'
|
39
39
|
Connection:
|
@@ -42,5 +42,5 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/search_engines/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -27,13 +27,13 @@ http_interactions:
|
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 596d71dc34284e393988fb174ab86587
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024333'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
38
|
- '86'
|
39
39
|
Connection:
|
@@ -42,5 +42,5 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/search_engines?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -27,13 +27,13 @@ http_interactions:
|
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- e3aab8b6269b05b2954f8779391a98f8
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.029545'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
- Tue,
|
36
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
37
37
|
Content-Length:
|
38
38
|
- '100'
|
39
39
|
Connection:
|
@@ -42,5 +42,5 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"results":[{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at: Tue,
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/websites/1?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,29 +23,29 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"16aafa997a49128e79f0b18e1e9f01f0"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- d4f6e9aa783e3427b6398a81783b33fd
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.020573'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:07 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '30'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"id":1,"url":"example.com"}'
|
43
|
+
string: '{"id":1,"url":"example-0.com"}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
|
46
46
|
- request:
|
47
47
|
method: post
|
48
|
-
uri: http://localhost:5055/api/
|
48
|
+
uri: http://localhost:5055/api/v2/keywords?keyword%5Bphrase%5D=new%20keyword&keyword%5Bwebsite_id%5D=1&token=123
|
49
49
|
body:
|
50
50
|
encoding: UTF-8
|
51
51
|
string: '{"keyword":{"phrase":"new keyword","website_id":1}}'
|
@@ -68,29 +68,29 @@ http_interactions:
|
|
68
68
|
X-Ua-Compatible:
|
69
69
|
- IE=Edge
|
70
70
|
Etag:
|
71
|
-
- '"
|
71
|
+
- '"91b63656425d42576d737949529138ff"'
|
72
72
|
Cache-Control:
|
73
73
|
- max-age=0, private, must-revalidate
|
74
74
|
X-Request-Id:
|
75
|
-
-
|
75
|
+
- d0023c82a414afd19855faec4909c771
|
76
76
|
X-Runtime:
|
77
|
-
- '0.
|
77
|
+
- '0.062052'
|
78
78
|
Server:
|
79
79
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Tue, 07 Apr 2015 16:20:07 GMT
|
82
82
|
Content-Length:
|
83
|
-
- '
|
83
|
+
- '472'
|
84
84
|
Connection:
|
85
85
|
- Keep-Alive
|
86
86
|
Set-Cookie:
|
87
|
-
- _serps_session=
|
87
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTBkNzZiNjI0MmVhYTU4OGU2Mjc1NDg1ZmM5NTVlNzNhBjsAVA%3D%3D--def6f99dd69f32a9a583b616988ce2140e002381;
|
88
88
|
path=/; HttpOnly
|
89
89
|
body:
|
90
90
|
encoding: UTF-8
|
91
|
-
string: '{"website_id":
|
92
|
-
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}],"id":
|
93
|
-
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}'
|
91
|
+
string: '{"website_id":1,"page":null,"total_pages":null,"results":[{"id":4,"phrase":"new
|
92
|
+
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"month_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1,"website_id":1}],"id":4,"phrase":"new
|
93
|
+
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"month_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}'
|
94
94
|
http_version:
|
95
|
-
recorded_at:
|
95
|
+
recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
|
96
96
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/websites?token=123&website%5Burl%5D=example-website.com
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"website":{"url":"example-website.com"}}'
|
@@ -25,27 +25,27 @@ http_interactions:
|
|
25
25
|
X-Ua-Compatible:
|
26
26
|
- IE=Edge
|
27
27
|
Etag:
|
28
|
-
- '"
|
28
|
+
- '"c18d14a267c436d0dc53ef6c510f3ae2"'
|
29
29
|
Cache-Control:
|
30
30
|
- max-age=0, private, must-revalidate
|
31
31
|
X-Request-Id:
|
32
|
-
-
|
32
|
+
- e303f967386ee63cb9726409b049cfdc
|
33
33
|
X-Runtime:
|
34
|
-
- '0.
|
34
|
+
- '0.038845'
|
35
35
|
Server:
|
36
36
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Tue, 07 Apr 2015 16:20:06 GMT
|
39
39
|
Content-Length:
|
40
40
|
- '36'
|
41
41
|
Connection:
|
42
42
|
- Keep-Alive
|
43
43
|
Set-Cookie:
|
44
|
-
- _serps_session=
|
44
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWUzZDdmZDAwMmQ3NjdhYTdlNDY0Mjc0OGQ1MWFiZmMyBjsAVA%3D%3D--907751a1293227d70659570089f34e6072590514;
|
45
45
|
path=/; HttpOnly
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
|
-
string: '{"id":
|
48
|
+
string: '{"id":3,"url":"example-website.com"}'
|
49
49
|
http_version:
|
50
|
-
recorded_at:
|
50
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
51
51
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5055/api/
|
5
|
+
uri: http://localhost:5055/api/v2/websites/2?token=123
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -23,29 +23,29 @@ http_interactions:
|
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge
|
25
25
|
Etag:
|
26
|
-
- '"
|
26
|
+
- '"3a335914e5d0421318ff92818ba861db"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 12a96fed80998414f622ad54bed38289
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.100699'
|
33
33
|
Server:
|
34
34
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Tue, 07 Apr 2015 16:20:07 GMT
|
37
37
|
Content-Length:
|
38
|
-
- '
|
38
|
+
- '30'
|
39
39
|
Connection:
|
40
40
|
- Keep-Alive
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '{"id":2,"url":"example-
|
43
|
+
string: '{"id":2,"url":"example-1.com"}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
|
46
46
|
- request:
|
47
47
|
method: delete
|
48
|
-
uri: http://localhost:5055/api/
|
48
|
+
uri: http://localhost:5055/api/v2/websites/2?token=123
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
51
51
|
string: ''
|
@@ -58,29 +58,35 @@ http_interactions:
|
|
58
58
|
- Ruby
|
59
59
|
response:
|
60
60
|
status:
|
61
|
-
code:
|
62
|
-
message: '
|
61
|
+
code: 200
|
62
|
+
message: 'OK '
|
63
63
|
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
64
66
|
X-Ua-Compatible:
|
65
67
|
- IE=Edge
|
68
|
+
Etag:
|
69
|
+
- '"7215ee9c7d9dc229d2921a40e899ec5f"'
|
66
70
|
Cache-Control:
|
67
|
-
-
|
71
|
+
- max-age=0, private, must-revalidate
|
68
72
|
X-Request-Id:
|
69
|
-
-
|
73
|
+
- 03905dd5dd97cf5b418b40792e5101e9
|
70
74
|
X-Runtime:
|
71
|
-
- '0.
|
75
|
+
- '0.029835'
|
72
76
|
Server:
|
73
77
|
- WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
|
74
78
|
Date:
|
75
|
-
-
|
79
|
+
- Tue, 07 Apr 2015 16:20:07 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '1'
|
76
82
|
Connection:
|
77
|
-
-
|
83
|
+
- Keep-Alive
|
78
84
|
Set-Cookie:
|
79
|
-
- _serps_session=
|
85
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWYwMDJhZDZlMTU4NTUzNWU3ZmMwNjE0MmZjNjE3MWRkBjsAVA%3D%3D--27d0d0636ac8dca1c41af6151c7bafd757afb7d4;
|
80
86
|
path=/; HttpOnly
|
81
87
|
body:
|
82
88
|
encoding: UTF-8
|
83
|
-
string:
|
89
|
+
string: " "
|
84
90
|
http_version:
|
85
|
-
recorded_at:
|
91
|
+
recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
|
86
92
|
recorded_with: VCR 2.9.3
|