API-Google

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

   "prereqs" : {
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Config::JSON" : "0",
            "Crypt::JWT" : "0",
            "Data::Dumper" : "0",
            "Mojo::UserAgent" : "0",
            "Mojo::Util" : "0",
            "Mojolicious::Commands" : "0",
            "Mojolicious::Lite" : "0",
            "Mojolicious::Plugin::OAuth2" : "0",
            "Net::EmptyPort" : "0",
            "Tie::File" : "0",
            "feature" : "0",
            "parent" : "0",
            "strict" : "0",

META.yml  view on Meta::CPAN

dynamic_config: 0
generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: API-Google
requires:
  Config::JSON: '0'
  Crypt::JWT: '0'
  Data::Dumper: '0'
  Mojo::UserAgent: '0'
  Mojo::Util: '0'
  Mojolicious::Commands: '0'
  Mojolicious::Lite: '0'
  Mojolicious::Plugin::OAuth2: '0'
  Net::EmptyPort: '0'
  Tie::File: '0'
  feature: '0'
  parent: '0'
  strict: '0'

Makefile.PL  view on Meta::CPAN

  "DISTNAME" => "API-Google",
  "EXE_FILES" => [
    "bin/goauth"
  ],
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.006",
  "NAME" => "API::Google",
  "PREREQ_PM" => {
    "Config::JSON" => 0,
    "Crypt::JWT" => 0,
    "Data::Dumper" => 0,
    "Mojo::UserAgent" => 0,
    "Mojo::Util" => 0,
    "Mojolicious::Commands" => 0,
    "Mojolicious::Lite" => 0,
    "Mojolicious::Plugin::OAuth2" => 0,
    "Net::EmptyPort" => 0,
    "Tie::File" => 0,
    "feature" => 0,
    "parent" => 0,
    "strict" => 0,

Makefile.PL  view on Meta::CPAN

  "VERSION" => "0.12",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Config::JSON" => 0,
  "Crypt::JWT" => 0,
  "Data::Dumper" => 0,
  "Mojo::UserAgent" => 0,
  "Mojo::Util" => 0,
  "Mojolicious::Commands" => 0,
  "Mojolicious::Lite" => 0,
  "Mojolicious::Plugin::OAuth2" => 0,
  "Net::EmptyPort" => 0,
  "Test::More" => 0,
  "Tie::File" => 0,
  "feature" => 0,
  "parent" => 0,

bin/goauth  view on Meta::CPAN

#!perl

package goauth;
$goauth::VERSION = '0.12';

# ABSTRACT: CLI tool for easily getting of Google API access tokens. Supports multiple users 


use Mojolicious::Commands;
use Data::Dumper;
use Config::JSON;
use Tie::File;
use feature 'say';
use Net::EmptyPort qw(empty_port);

my $filename;
if ($ARGV[0]) {
  $filename = $ARGV[0];
} else {
  $filename = 'config.json';

lib/API/Google.pm  view on Meta::CPAN

package API::Google;
$API::Google::VERSION = '0.12';
use Data::Dumper;

# ABSTRACT: Perl library for easy access to Google services via their API


use strict;
use warnings;
use Mojo::UserAgent;
use Config::JSON;
use Data::Dumper;


sub new {
  my ($class, $params) = @_;
  my $h = {};
  if ($params->{tokensfile}) {
  	$h->{tokensfile} = Config::JSON->new($params->{tokensfile});
  } else {
  	die 'no json file specified!';
  }

lib/API/Google/Server.pm  view on Meta::CPAN

#!perl
package API::Google::Server;
$API::Google::Server::VERSION = '0.12';
# ABSTRACT: Mojolicious::Lite web server for getting Google API tokens via Oauth 2.0 

use Mojolicious::Lite;
use Data::Dumper;
use Config::JSON;
use Tie::File;
use Crypt::JWT qw(decode_jwt);
use feature 'say';
use Mojo::Util 'getopt';
use Mojolicious::Plugin::OAuth2;

# use Mojo::JWT;

# sub return_json_filename {



( run in 0.287 second using v1.01-cache-2.11-cpan-4d50c553e7e )