Sha256: f133d28e49a28f12d5979f91dfa0aab87119e1df5ad4bf66e19187905a5c183d

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 Bytes

Contents

Metrika
=======

Wrapper for Yandex.Metrika API

Inspired by [Wynn Netherland's LinkedIn Gem](https://github.com/pengwynn/linkedin).

# Info

**Under heavy development!**

# JSON API

    c = Metrika::Client.new('your_app_id', 'your_app_password')

    # if you don't have token yet
    c.authorization_url
    c.authorize_token('authorization_code')

    # if you alredy have token
    c.restore_token('token_code')

    # counters
    c.get_counters
    c.creater_counter(params)
    c.get_counter(id)
    c.update_counter(id, params)
    c.delete_counter(id)
    c.check_counter(id)

    #goals
    c.get_counter_goals(counter_id)
    c.create_counter_goal(counter_id, params)
    c.create_counter_goal(counter_id, params)
    c.get_counter_goal(counter_id, id)
    c.update_counter_goal(counter_id, id, params)
    c.delete_counter_goal(counter_id, id)

    #stats
    c.get_counter_stat_traffic_summary(1131265, :group => :month, :date1 => Date.parse('20110925'), :date2 => Date.today)

# Object API    

Later…

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metrika-0.0.4 README.md
metrika-0.0.3 README.md