0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for Yandex Metrica API. Make requests to counter and reporting sections of API. OneRetarget.com - advertising automation service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1.4
~> 12.3.0, >= 12.3.0
~> 3.7.0, >= 3.7.0
~> 0.58.2
~> 2.3.2, >= 2.3.2

Runtime

~> 2.0, >= 2.0.0
~> 2.0, >= 2.0.0
 Project Readme

Ruby client for Yandex Metrica API

Build Status Maintainability

Installation

Add this line to your application's Gemfile:

gem 'metrica_api', '~> 0.1.0'

Or install from command line:

$ gem install metrica_api

Usage

# You need an access token to use API
api = MetricaApi.counters(token)
api.data(field: 'goals') # => { 'counters' => [...], ... }

Exceptions

def read_counters

  MetricaApi.counters(token).data

rescue MetricaApi::RequestError, MetricaApi::ConnectionError => e

  puts e.message, e.backtrace

end

Testing

bundle exec rspec

Contributing

Create a pull-request or make an issue