ahrefs_api 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ahrefs_api.rb +1 -0
- data/lib/ahrefs_api/backlinks.rb +22 -0
- data/lib/ahrefs_api/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: 3c14b2b730679e55967f4000ca52874856a793c1
|
4
|
+
data.tar.gz: b43be3f1f74d897ae56a9a18c18d0a8c8630c1ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710ffd71b7e421e00ca1753d42403ea8d57118e0860cfab5e4b3c8fc0124e3da806dc0fd6b0d1c9a21e98ee283de26f3b98010dd75a661ad419ac52113142241
|
7
|
+
data.tar.gz: fa09d86b28987b8987424a2e074840ae9eda8846d931cff7cdab72053bc9c62b76fcc6ca124546c3be54be74c8ab52136287c2cf3a901b9d8545dc38d284ec89
|
data/lib/ahrefs_api.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
module AhrefsAPI
|
3
|
+
# this API endpoint gives a list of the new/lost links up to 60 days back
|
4
|
+
# it supports limit, offset, having
|
5
|
+
class Backlinks < AhrefsAPI::Base
|
6
|
+
def from
|
7
|
+
:backlinks
|
8
|
+
end
|
9
|
+
|
10
|
+
# give options as a hash
|
11
|
+
# possible options:
|
12
|
+
# limit ==> limits the number of returned results
|
13
|
+
# select ==> only hands you back the selected columns
|
14
|
+
# offset ==>
|
15
|
+
# having ==>
|
16
|
+
# where ==> accepts type:"new"/type:"lost" and date:"2013-05-26"
|
17
|
+
def get_json(target = :'ahrefs.com', opts = {})
|
18
|
+
opts[:target] = target
|
19
|
+
get_data(opts)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/ahrefs_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ahrefs_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Engelhardt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- Rakefile
|
70
70
|
- ahrefs_api.gemspec
|
71
71
|
- lib/ahrefs_api.rb
|
72
|
+
- lib/ahrefs_api/backlinks.rb
|
72
73
|
- lib/ahrefs_api/backlinks_new_lost.rb
|
73
74
|
- lib/ahrefs_api/base.rb
|
74
75
|
- lib/ahrefs_api/subscription_info.rb
|