serpscan 0.0.2 → 0.1.0

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/serpscan/api.rb +2 -1
  4. data/lib/serpscan/keyword.rb +2 -1
  5. data/lib/serpscan/version.rb +1 -1
  6. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +11 -10
  7. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
  8. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_alltime_change.yml +8 -8
  9. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_current_rank.yml +8 -8
  10. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_day_change.yml +8 -8
  11. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
  12. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_initial_rank.yml +8 -8
  13. 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
  14. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_phrase.yml +8 -8
  15. 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
  16. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_volume.yml +8 -8
  17. 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
  18. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_week_change.yml +8 -8
  19. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_countries.yml +5 -5
  20. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +5 -5
  21. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_title.yml +5 -5
  22. 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
  23. data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml +19 -19
  24. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +8 -8
  25. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
  26. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
  27. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_url.yml +8 -8
  28. 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
  29. data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_a_paginated_array_of_keyword_objects.yml +18 -590
  30. data/spec/lib/serpscan/keyword_spec.rb +1 -1
  31. data/spec/lib/serpscan/website_spec.rb +1 -1
  32. data/spec/spec_helper.rb +2 -1
  33. metadata +6 -8
  34. 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: 11a84d05866e064d858daebef662350e07bffe03
4
- data.tar.gz: 09f5dde760f58eef283330e66db0055c3445ca47
3
+ metadata.gz: 0fa2b2c96a5b8eca42bc29d44aeddff048b7dd2e
4
+ data.tar.gz: f1a11e1f12b2fd289b6efe9c8e47e5b9d8b51ff1
5
5
  SHA512:
6
- metadata.gz: 783b5eca03d5f3d49d3e853b5abfa7cadb62d3c059c18d33a97b329c13ec2bbaf012db6c5375f7a29716f3c3bca2faac582b706a1072bd8684176b6f1a4255f6
7
- data.tar.gz: 300030e06194ebde4e126d8f66875c0da76223f81ac724a5fbb49084fe66b7cc1e049d6ee5961e09cd6f4de96cd4b9162bb4409f444921dec86b6fd582fbf034
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(phrase: 'example 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
  ```
@@ -1,8 +1,9 @@
1
1
  require 'rest_client'
2
+ require 'json'
2
3
 
3
4
  module Serpscan
4
5
  class API
5
- BASE_URL = 'https://serpscan.com/api/v1'
6
+ BASE_URL = 'https://serpscan.com/api/v2'
6
7
  class << self
7
8
  def get(path, options = {})
8
9
  url = api_url(path)
@@ -1,6 +1,7 @@
1
1
  module Serpscan
2
2
  class Keyword < SerpscanChildObject
3
- ATTRIBUTES = [:id, :phrase, :current_rank, :initial_rank, :day_change, :week_change, :alltime_change, :search_volume, :search_engine_country_id]
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
@@ -1,3 +1,3 @@
1
1
  module Serpscan
2
- VERSION = '0.0.2'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:5055/api/v1/keywords?keyword%5Bkeyword%5D=example%20keyword&keyword%5Bsearch_engine_country_id%5D=1&keyword%5Bwebsite_id%5D=1&token=123
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
- - '"b468971b71df0e30c02b082c707379cf"'
28
+ - '"bf4c0cfa882d4cebe5595d83fbfbd1eb"'
29
29
  Cache-Control:
30
30
  - max-age=0, private, must-revalidate
31
31
  X-Request-Id:
32
- - 7024f78e2d3309f8fd844a19208d4da7
32
+ - bb0308db399a6fa6ff91ed3681b19251
33
33
  X-Runtime:
34
- - '0.069711'
34
+ - '0.065284'
35
35
  Server:
36
36
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
37
37
  Date:
38
- - Sun, 22 Feb 2015 20:43:19 GMT
38
+ - Tue, 07 Apr 2015 16:20:05 GMT
39
39
  Content-Length:
40
- - '246'
40
+ - '480'
41
41
  Connection:
42
42
  - Keep-Alive
43
43
  Set-Cookie:
44
- - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgxOTYyYTcxZGNkNzk1NjQ3MGFmZGUwNzQ0MTNjYThjBjsAVA%3D%3D--08f481b92b725e3339e9a3d8177e6c10e57ab1a2;
44
+ - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTg2NjdjNDUzNmQwMDNjYTYxMjRmODcyNDQ5OWU0NzE5BjsAVA%3D%3D--daf1c1f64849e1f45bfc2dd75794a9ed2d12c0f0;
45
45
  path=/; HttpOnly
46
46
  body:
47
47
  encoding: UTF-8
48
- string: '{"website_id":null,"page":null,"total_pages":null,"results":[{"id":3,"phrase":"example
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: Sun, 22 Feb 2015 20:43:19 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"126f743778cab5be58d8d002dd0e3db4"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 7b465c281e6f9404297b8934ce642967
30
+ - 1e156f07a6ad567966fed1c24f25cf8e
31
31
  X-Runtime:
32
- - '0.023961'
32
+ - '0.024516'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
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":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: Sun, 22 Feb 2015 20:41:41 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  - request:
47
47
  method: delete
48
- uri: http://localhost:5055/api/v1/keywords/1?token=123
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: 204
62
- message: 'No Content '
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
- - no-cache
71
+ - max-age=0, private, must-revalidate
68
72
  X-Request-Id:
69
- - 7dbd3aaa1b0988ee0a1dda27bf5e9240
73
+ - bb006962cb632960671e41b9b4cadfdf
70
74
  X-Runtime:
71
- - '0.212115'
75
+ - '0.108615'
72
76
  Server:
73
77
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
74
78
  Date:
75
- - Sun, 22 Feb 2015 20:41:41 GMT
79
+ - Tue, 07 Apr 2015 16:20:06 GMT
80
+ Content-Length:
81
+ - '1'
76
82
  Connection:
77
- - close
83
+ - Keep-Alive
78
84
  Set-Cookie:
79
- - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWIxMTZlMGYxNmViYzU5Y2NkY2ZmNzMzZTc3N2Q4ZTlhBjsAVA%3D%3D--4cacd417745a3d96966dae09af6890f22873205a;
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 7c7cfceb9cb25a66222b707285759628
30
+ - a476d5e484f7a72ceef66703f4ceec42
31
31
  X-Runtime:
32
- - '0.024772'
32
+ - '0.025704'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 5a6d70ca798aa8fba6dd1c1f21b728b8
30
+ - 6441857f97502766faa5a02d14319af0
31
31
  X-Runtime:
32
- - '0.027653'
32
+ - '0.024029'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:05 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - d00d2f99e6b697b05fe5412b8039f2ac
30
+ - e000c62e17bd5c0e42665a6424feb0fe
31
31
  X-Runtime:
32
- - '0.024364'
32
+ - '0.027492'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 9707b63eb87a532b59312ee87111e9a5
30
+ - 1cf48f96a1adbca3450b1f64b6c69566
31
31
  X-Runtime:
32
- - '0.425401'
32
+ - '0.026935'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:05 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - ecd6e9a85d98938be3ff778f80e4e266
30
+ - 345cdff9b6b29325eefdc9d9a327ee45
31
31
  X-Runtime:
32
- - '0.026342'
32
+ - '0.104054'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:05 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
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/v1/search_engines?token=123
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
- - '"32c92eaf9e1ae3568c10f3ce8bae4a16"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 6084349191dfd9b13ac3b318c59b95cd
30
+ - 95a50e8b6962adeedc1ffb4219fc22fc
31
31
  X-Runtime:
32
- - '0.061687'
32
+ - '0.026852'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '100'
38
+ - '223'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"results":[{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_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: Sun, 22 Feb 2015 20:41:42 GMT
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/v1/keywords/1?token=123
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
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 09975df1bb2818f75cce85eb55bb1fbd
30
+ - 0d60525522871816499a84181ee747a4
31
31
  X-Runtime:
32
- - '0.032369'
32
+ - '0.024486'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:05 GMT
37
37
  Content-Length:
38
- - '185'
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: Sun, 22 Feb 2015 20:41:41 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:05 GMT
46
46
  recorded_with: VCR 2.9.3