0.01
No commit activity in last 3 years
No release in over 3 years
Ruby interface to the SERP Metrics API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

SerpMetrics

Ruby interface to the SERP Metrics API

Installation

Add this line to your application's Gemfile:

gem 'serp_metrics'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install serp_metrics

Usage

SerpMetrics.client.configure do |client|
  client.key = 'API_KEY'
  client.secret = 'API_SECRET'
end

SerpMetrics.client.account.credit
SerpMetrics.client.account.time

SerpMetrics.client.engines.codes

SerpMetrics.client.flux.flux('google_en-us')

SerpMetrics.client.keywords.add("restaurants", ['google_en-us'])
SerpMetrics.client.keywords.remove(keyword_id)
SerpMetrics.client.keywords.check(keyword_id, ['google_en-us'])
SerpMetrics.client.keywords.serp(check_id)
SerpMetrics.client.keywords.all

SerpMetrics.client.delayed.add("restaurants", ['google_en-us'])
SerpMetrics.client.delayed.add("restaurants", ['google_en-us'], "Nashville")
SerpMetrics.client.delayed.get(delayed_id)

SerpMetrics.client.priority.add("restaurants", ['google_en-us'])
SerpMetrics.client.priority.add("restaurants", ['google_en-us'], "Nashville")
SerpMetrics.client.priority.get(priority_id)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request