Module: SBA::Client::Sites
Instance Method Summary collapse
-
#all_sites(options = {}) ⇒ Hash
Returns all recommended sites for all keywords and phrases.
-
#sites_by_category(category, options = {}) ⇒ Hash
Returns all recommended sites for a specific category.
-
#sites_by_domain(domain, options = {}) ⇒ Hash
Returns all recommended sites belonging to a specific domain.
-
#sites_by_keyword(keyword, options = {}) ⇒ Hash
Returns all recommended sites for a specific keyword.
-
#sites_by_master_term(term, options = {}) ⇒ Hash
Returns all recommended sites assigned a specific master term.
Instance Method Details
#all_sites(options = {}) ⇒ Hash
Returns all recommended sites for all keywords and phrases.
16 17 18 19 |
# File 'lib/sba/client/sites.rb', line 16 def all_sites(={}) response = get("rec_sites/all_sites/keywords.json", ) #simplify_response(response) end |
#sites_by_category(category, options = {}) ⇒ Hash
Returns all recommended sites for a specific category.
41 42 43 |
# File 'lib/sba/client/sites.rb', line 41 def sites_by_category(category, ={}) response = get("rec_sites/category/#{category}.json", ) end |
#sites_by_domain(domain, options = {}) ⇒ Hash
Returns all recommended sites belonging to a specific domain
65 66 67 |
# File 'lib/sba/client/sites.rb', line 65 def sites_by_domain(domain, ={}) response = get("rec_sites/keywords/domain/#{domain}.json", ) end |
#sites_by_keyword(keyword, options = {}) ⇒ Hash
Returns all recommended sites for a specific keyword.
29 30 31 |
# File 'lib/sba/client/sites.rb', line 29 def sites_by_keyword(keyword, ={}) response = get("rec_sites/keywords/#{keyword}.json", ) end |
#sites_by_master_term(term, options = {}) ⇒ Hash
Returns all recommended sites assigned a specific master term.
53 54 55 |
# File 'lib/sba/client/sites.rb', line 53 def sites_by_master_term(term, ={}) response = get("rec_sites/keywords/master_term/#{term}.json", ) end |