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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ca7c58c5c129812d1f1115be5200a1dd4ebca9e
4
- data.tar.gz: f97e036ccd7e26943820e6d889e970c16e02d4fd
3
+ metadata.gz: 3c14b2b730679e55967f4000ca52874856a793c1
4
+ data.tar.gz: b43be3f1f74d897ae56a9a18c18d0a8c8630c1ce
5
5
  SHA512:
6
- metadata.gz: aa0537df40b93865c5fa44d14c11319c0b33c6b91b710863d8a6ca3d214df81dc3f64b1fe76954ad1472e11a26068079c2c1f433a1425cf9f41d5bdff7390c60
7
- data.tar.gz: 78cbb44a5341b8b08a5c89324fb645320bd5b17cafa6a35f6e055348f1332d39a25971e2bb6597a7cc8cd41c88db53b0d5f46c1b0464248f2ab31bb7d074a3f1
6
+ metadata.gz: 710ffd71b7e421e00ca1753d42403ea8d57118e0860cfab5e4b3c8fc0124e3da806dc0fd6b0d1c9a21e98ee283de26f3b98010dd75a661ad419ac52113142241
7
+ data.tar.gz: fa09d86b28987b8987424a2e074840ae9eda8846d931cff7cdab72053bc9c62b76fcc6ca124546c3be54be74c8ab52136287c2cf3a901b9d8545dc38d284ec89
@@ -1,5 +1,6 @@
1
1
  require "ahrefs_api/version"
2
2
  require 'ahrefs_api/base'
3
+ require 'ahrefs_api/backlinks'
3
4
  require 'ahrefs_api/backlinks_new_lost'
4
5
  require 'ahrefs_api/subscription_info'
5
6
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AhrefsAPI
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
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.3
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-03-06 00:00:00.000000000 Z
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