2017 © Pedro Peláez
 

library authorize-google-api

Authorize HTTP Client Manager: Google API Driver

image

revolution/authorize-google-api

Authorize HTTP Client Manager: Google API Driver

  • Tuesday, June 26, 2018
  • by revolution
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 400 % Grown

The README.md

Authorize HTTP Client Manager: Google API Driver

  • https://github.com/kawax/authorize-manager
  • https://github.com/google/google-api-php-client

Requirements

  • PHP >= 7.2
  • Laravel >= 5.8

Installation

composer require revolution/authorize-google-api

Usage

    $credentials = [
        'application_name' => '',
        'client_id'        => '',
        'client_secret'    => '',
        'redirect_uri'     => '',
        'scopes'           => [\Google_Service_PhotosLibrary::PHOTOSLIBRARY],
        'access_type'      => 'online',
        'approval_prompt'  => 'auto',
        'prompt'           => 'consent',
    ];

    if (Authorize::driver('google-api')->login($credentials)) {
        /**
         * @var \Google_Client $client
         */
        $client = Authorize::driver('google-api')->client();
        $client->setAccessToken($token);
        $photos = new \Google_Service_PhotosLibrary($client);
    }

LICENSE

MIT
Copyright kawax, (*1)

The Versions

26/06 2018

dev-master

9999999-dev

Authorize HTTP Client Manager: Google API Driver

  Sources   Download

MIT

The Requires

 

by kawax

laravel google authorize

26/06 2018

1.0.1

1.0.1.0

Authorize HTTP Client Manager: Google API Driver

  Sources   Download

MIT

The Requires

 

by kawax

laravel google authorize

27/05 2018

1.0.0

1.0.0.0

Authorize HTTP Client Manager: Google API Driver

  Sources   Download

MIT

The Requires

 

by kawax

laravel google authorize