yooda-client 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +24 -11
- data/lib/yooda/client.rb +2 -1
- data/lib/yooda/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e155976eb6ad0c2595c2600b39fa6b1cbecb00
|
4
|
+
data.tar.gz: bc3ba0dcf55898ca6f209946cfbf2ab06d327abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea54bedbb6372cd0e5edd85a2ff0ce97b88e4341c97d8ad5f31c08b382a59617cd74e6f26e0c3cd01d02834a838834794f02050dccbfe52cbf9dca9d8ebd89e
|
7
|
+
data.tar.gz: 35fdcc287af4258a2915eff6428f52042d134dcb445add099b1b35d41596ab57856d56734face0082118abb06c5871c9cea0c71060d58965369cd664037be28f
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
# Yooda
|
1
|
+
# A Ruby wrapper for the Yooda API
|
2
|
+
A simple and lightweight ruby module for working with Yooda via the Yooda API. Learn about the Yooda API at https://api.yooda.com/doc.
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
4
|
+
[La revanche des sites](http://www.la-revanche-des-sites.fr) ❤️ [Yooda](https://www.yooda.com), so if you have problems using the gem or would like to see support for new endpoints, please open an issue. We'll get it resolved as quick as we can.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,22 +21,36 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
```ruby
|
25
|
+
client = Yooda::Client.new(apikey: "ok")
|
26
26
|
|
27
|
-
|
27
|
+
client.credits
|
28
|
+
client.histories
|
29
|
+
client.histories(request_date: Date.today.strftime("%Y-%m-%d"))
|
30
|
+
client.histories(return_max: 2, return_initial_position: 2)
|
28
31
|
|
29
|
-
|
32
|
+
client.domain_informations("www.la-revanche-des-sites.fr")
|
33
|
+
client.domain_market_kpi(1484887)
|
34
|
+
client.keywords_market_by_domain(1484887, return_max: 2, return_initial_position: 2)
|
30
35
|
|
31
|
-
|
36
|
+
client.keyword_informations("SEO")
|
37
|
+
client.keyword_market_kpi(124)
|
38
|
+
client.keywords_market_by_keyword(124, return_max: 2, return_initial_position: 2)
|
39
|
+
```
|
32
40
|
|
33
41
|
## Contributing
|
34
42
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/larevanchedessites/yooda-api-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
44
|
|
37
|
-
## License
|
38
45
|
|
46
|
+
## History
|
47
|
+
|
48
|
+
View the [changelog](https://github.com/larevanchedessites/yooda-api-ruby-client/blob/master/CHANGELOG.md). This gem follows [Semantic Versioning](http://semver.org/).
|
49
|
+
|
50
|
+
## License
|
39
51
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
+
See [LICENSE](https://github.com/larevanchedessites/yooda-api-ruby-client/blob/master/LICENSE.txt) for details.
|
40
53
|
|
41
54
|
## Code of Conduct
|
42
55
|
|
43
|
-
Everyone interacting in the
|
56
|
+
Everyone interacting in the project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/yooda-client/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/yooda/client.rb
CHANGED
@@ -25,7 +25,8 @@ module Yooda
|
|
25
25
|
|
26
26
|
def initialize(options={})
|
27
27
|
@apikey = options[:apikey] || Yooda.apikey
|
28
|
-
@connection_middleware = options[:connection_middleware] || Yooda.connection_middleware || []
|
28
|
+
# @connection_middleware = options[:connection_middleware] || Yooda.connection_middleware || []
|
29
|
+
@connection_middleware = []
|
29
30
|
@connection_middleware += DEFAULT_CONNECTION_MIDDLEWARE
|
30
31
|
end
|
31
32
|
|
data/lib/yooda/version.rb
CHANGED
@@ -3,7 +3,7 @@ module Yooda
|
|
3
3
|
class Version
|
4
4
|
MAJOR = 0 unless defined? Yooda::Version::MAJOR
|
5
5
|
MINOR = 1 unless defined? Yooda::Version::MINOR
|
6
|
-
PATCH =
|
6
|
+
PATCH = 4 unless defined? Yooda::Version::PATCH
|
7
7
|
PRE = nil unless defined? Yooda::Version::PRE
|
8
8
|
|
9
9
|
class << self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yooda-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bastien Montois
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".gitignore"
|
119
119
|
- ".rspec"
|
120
120
|
- ".travis.yml"
|
121
|
+
- CHANGELOG.md
|
121
122
|
- CODE_OF_CONDUCT.md
|
122
123
|
- Gemfile
|
123
124
|
- Gemfile.lock
|