Group
Extension

Matches 2

Mojo-GoogleAnalytics ( J/JH/JHTHORSEN/Mojo-GoogleAnalytics-0.04.tar.gz, JHTHORSEN, 2018; MetaCPAN )
Mojo-GoogleAnalytics/lib/Mojo/GoogleAnalytics.pm ( view source; MetaCPAN )

use Mojo::Collection;
use Mojo::File 'path';
use Mojo::GoogleAnalytics::Report;
use Mojo::JSON qw(decode_json false true);
use Mojo::Promise;
use Mojo::JWT;
use Mojo::UserAgent;

use constant DEBUG =
 $query, $cb) = @_;
  my @ua_args;

  @ua_args = (Mojo::URL->new($self->{batch_get_uri}), {},
    json => {reportRequests => ref $query eq 'ARRAY' ? $query : [$query]});

  if ($cb) {
    my $p = $sel
{
  shift->batch_get(shift, 1);
}

sub from_file {
  my ($self, $file) = @_;
  my $attrs = decode_json(path($file)->slurp);

  for my $attr (keys %$attrs) {
    $self->{$attr} ||= $attrs->{$attr};
   
Mojo-GoogleAnalytics ( J/JH/JHTHORSEN/Mojo-GoogleAnalytics-0.04.tar.gz, JHTHORSEN, 2018; MetaCPAN )
Mojo-GoogleAnalytics/lib/Mojo/GoogleAnalytics/Report.pm ( view source; MetaCPAN )
> object used in the request. Useful if you
need to extract raw data:

  my $raw_data = $tx->res->json;

=head1 METHODS

=head2 rows_to_hash

  $hash_ref = $self->rows_to_hash;

Creates a multi dimens

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.