PHPackages                             flowpack/googleapiclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. flowpack/googleapiclient

ActiveNeos-package[API Development](/categories/api)

flowpack/googleapiclient
========================

Google Api Client provider for Neos Flow

1.3.0(4y ago)094.9k↓39.5%24GPL-3.0-or-laterPHP

Since Apr 1Pushed 4y ago11 watchersCompare

[ Source](https://github.com/Flowpack/Flowpack.GoogleApiClient)[ Packagist](https://packagist.org/packages/flowpack/googleapiclient)[ RSS](/packages/flowpack-googleapiclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (4)

flowpack-googleapiclient
========================

[](#flowpack-googleapiclient)

A package that provides Neos Flow &amp; CMS packages with authentication and helpers for the Google API Client.

Installation
------------

[](#installation)

Add the dependency to your site package like this:

```
composer require --no-update flowpack/googleapiclient

```

And then run `composer update` in your project's root folder.

Configuration
-------------

[](#configuration)

### Authentication

[](#authentication)

First retrieve your `auth.json` file from [Google](https://cloud.google.com/docs/authentication/production).

To allow the API client to authenticate, you either have to store the credentials via the following command:

```
./flow googleapi:storecredentials auth.json

```

Or set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` to the path where you store your `auth.json`.

### Application name

[](#application-name)

Set your application name in your `Settings.yaml` like this:

```
Flowpack:
  GoogleApiClient:
    applicationName: 'My app'

```

Usage
-----

[](#usage)

Add an `Objects.yaml` to your package's `Configuration` folder with the following content and adapt to your service name:

```
Vendor\Package\Service\MyGoogleService:
  arguments:
    1:
      object:
        factoryObjectName: Flowpack\GoogleApiClient\Service\ClientFactory
        factoryMethodName: create

```

Then have your `MyGoogleService` class look like this:

```
