Class: AhrefsAPI::Backlinks

Inherits:
Base
  • Object
show all
Defined in:
lib/ahrefs_api/backlinks.rb

Overview

this API endpoint gives a list of the new/lost links up to 60 days back it supports limit, offset, having

Instance Attribute Summary

Attributes inherited from Base

#mode

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AhrefsAPI::Base

Instance Method Details

#fromObject



6
7
8
# File 'lib/ahrefs_api/backlinks.rb', line 6

def from
  :backlinks
end

#get_json(target = :'ahrefs.com', opts = {}) ⇒ Object

give options as a hash possible options: limit ==> limits the number of returned results select ==> only hands you back the selected columns offset ==> having ==> where ==> accepts type:“new”/type:“lost” and date:“2013-05-26”



17
18
19
20
# File 'lib/ahrefs_api/backlinks.rb', line 17

def get_json(target = :'ahrefs.com', opts = {})
  opts[:target] = target
  get_data(opts)
end