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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa2b2c96a5b8eca42bc29d44aeddff048b7dd2e
|
4
|
+
data.tar.gz: f1a11e1f12b2fd289b6efe9c8e47e5b9d8b51ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ab5935e4d450715fe760c8f4d942f187242a2193f81aecb7960889d370915f5eb861b8e57e455d69ebb946ffdcca33d3b83b2248835a7d798739c443e53ede
|
7
|
+
data.tar.gz: e8fb6813327094250d3ffd7c318fab961531c2987d43f78d74fc7d2cc72c4fed86ec92a802cbfc7c520375cec4b839f2efc4ffba749a99fcd02a7ce6e77f35a8
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ To create a keyword:
|
|
58
58
|
|
59
59
|
```ruby
|
60
60
|
website = Serpscan::Website.find(1)
|
61
|
-
website.create_keyword(
|
61
|
+
website.create_keyword('example keyword')
|
62
62
|
```
|
63
63
|
|
64
64
|
## Attributes
|
@@ -78,5 +78,5 @@ Websites:
|
|
78
78
|
Keywords:
|
79
79
|
|
80
80
|
```ruby
|
81
|
-
[:id, :phrase, :current_rank, :initial_rank, :day_change, :week_change, :alltime_change, :search_volume, :search_engine_country_id]
|
81
|
+
[:id, :phrase, :current_rank, :initial_rank, :day_change, :week_change, :month_change, :alltime_change, :search_volume, :search_engine_country_id, :website_id]
|
82
82
|
```
|
data/lib/serpscan/api.rb
CHANGED
data/lib/serpscan/keyword.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Serpscan
|
2
2
|
class Keyword < SerpscanChildObject
|
3
|
-
ATTRIBUTES = [:id, :phrase, :current_rank, :initial_rank, :day_change,
|
3
|
+
ATTRIBUTES = [:id, :phrase, :current_rank, :initial_rank, :day_change,
|
4
|
+
:month_change, :week_change, :alltime_change, :search_volume, :search_engine_country_id, :website_id]
|
4
5
|
attr_accessor *ATTRIBUTES
|
5
6
|
|
6
7
|
def website
|
data/lib/serpscan/version.rb
CHANGED
@@ -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/keywords?keyword%5Bkeyword%5D=example%20keyword&keyword%5Bsearch_engine_country_id%5D=1&keyword%5Bwebsite_id%5D=1&token=123
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"keyword":{"keyword":"example keyword","website_id":1,"search_engine_country_id":1}}'
|
@@ -25,28 +25,29 @@ http_interactions:
|
|
25
25
|
X-Ua-Compatible:
|
26
26
|
- IE=Edge
|
27
27
|
Etag:
|
28
|
-
- '"
|
28
|
+
- '"bf4c0cfa882d4cebe5595d83fbfbd1eb"'
|
29
29
|
Cache-Control:
|
30
30
|
- max-age=0, private, must-revalidate
|
31
31
|
X-Request-Id:
|
32
|
-
-
|
32
|
+
- bb0308db399a6fa6ff91ed3681b19251
|
33
33
|
X-Runtime:
|
34
|
-
- '0.
|
34
|
+
- '0.065284'
|
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:05 GMT
|
39
39
|
Content-Length:
|
40
|
-
- '
|
40
|
+
- '480'
|
41
41
|
Connection:
|
42
42
|
- Keep-Alive
|
43
43
|
Set-Cookie:
|
44
|
-
- _serps_session=
|
44
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTg2NjdjNDUzNmQwMDNjYTYxMjRmODcyNDQ5OWU0NzE5BjsAVA%3D%3D--daf1c1f64849e1f45bfc2dd75794a9ed2d12c0f0;
|
45
45
|
path=/; HttpOnly
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
|
-
string: '{"website_id":
|
49
|
-
keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}]
|
48
|
+
string: '{"website_id":1,"page":null,"total_pages":null,"results":[{"id":3,"phrase":"example
|
49
|
+
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":3,"phrase":"example
|
50
|
+
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}'
|
50
51
|
http_version:
|
51
|
-
recorded_at:
|
52
|
+
recorded_at: Tue, 07 Apr 2015 16:20:05 GMT
|
52
53
|
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/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
|
+
- '"126f743778cab5be58d8d002dd0e3db4"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 1e156f07a6ad567966fed1c24f25cf8e
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024516'
|
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":
|
43
|
+
string: '{"id":2,"phrase":"example keyword 1","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":2}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
|
46
46
|
- request:
|
47
47
|
method: delete
|
48
|
-
uri: http://localhost:5055/api/
|
48
|
+
uri: http://localhost:5055/api/v2/keywords/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
|
+
- bb006962cb632960671e41b9b4cadfdf
|
70
74
|
X-Runtime:
|
71
|
-
- '0.
|
75
|
+
- '0.108615'
|
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:06 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '1'
|
76
82
|
Connection:
|
77
|
-
-
|
83
|
+
- Keep-Alive
|
78
84
|
Set-Cookie:
|
79
|
-
- _serps_session=
|
85
|
+
- _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWU4NjMyMGE0YThjMDc0YmRkNmZiNWZiMzBiMmE4YzA1BjsAVA%3D%3D--f0658e9a6241fc52c8631b7fac95f8519691c57a;
|
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:06 GMT
|
86
92
|
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
|
+
- a476d5e484f7a72ceef66703f4ceec42
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.025704'
|
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
|
+
- 6441857f97502766faa5a02d14319af0
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024029'
|
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:05 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:05 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
|
+
- e000c62e17bd5c0e42665a6424feb0fe
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.027492'
|
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
|
+
- 1cf48f96a1adbca3450b1f64b6c69566
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.026935'
|
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:05 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:05 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
|
+
- 345cdff9b6b29325eefdc9d9a327ee45
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.104054'
|
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:05 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:05 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
|
+
- 95a50e8b6962adeedc1ffb4219fc22fc
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.026852'
|
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
|
+
- 0d60525522871816499a84181ee747a4
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.024486'
|
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:05 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:05 GMT
|
46
46
|
recorded_with: VCR 2.9.3
|