Yandex::Metrika - It's module to get access to Yandex.Metrika API via OAuth
use Yandex::Metrika; my $metrika = Yandex::Metrika->new( token => '*******************************', counter => 1234567 ); $metrika->set_per_page( 20 ); # optional, default 100 $metrika->set_pretty( 1 ); # optional, default 1 $metrika->user_vars({ date1 => '20150501', date2 => '20150501', table_mode => 'tree', group => 'all' }); # if answer contains {links}->{next} you can load next page by $metrika->user_vars({ next => 1}); # show next link say $metrika->next_url;
Yandex::Metrika is using Yandex::OAuth::Client as base class to get access. API methods are mapped to object methods. See api docs for parameters and response formats at https://tech.yandex.ru/metrika/doc/ref/stat/api-stat-method-docpage/
Looking for contributors for this and other Yandex.APIs
Copyright (C) Andrey Kuzmin.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrey Kuzmin <chipsoid@cpan.org>
To install Yandex::Metrika, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yandex::Metrika
CPAN shell
perl -MCPAN -e shell install Yandex::Metrika
For more information on module installation, please visit the detailed CPAN module installation guide.