Extension:GoogleAPIClient

The Extension GoogleAPIClient provides the google php-api framework to use it within MediaWiki. It provides only backend functions and doesn't add functions or change the interface or something similar.

Alternative way to install the library without this extension
If you're already using composer, it makes sense to install the Google API client library for PHP using composer, too (it maybe makes sense to use composer, if you're not using it until now, too). For this, you don't need to install this extension and simply add the following lines to your  (or create one with): After running  in your extension folder, the client library will be installed. You need to load composer's autoloader to work with the library.

Use API Client
To use the Google API client in your Extension, simply create a new instance of the class. It is already added to. To know, how to use the client to get data of Google API services, read the documentation.

Example
With the following code, we login with a service account with the help of the api client:

Example extensions
The following extensions uses GoogleAPIClient (examples):
 * GoogleLogin
 * GoogleAnalyticsTopPages
 * GooglePlaces

Google API Client
This extension contains a copy of the Google PHP API Client, licensed under the Apache License version 2.0. To read the full license text, click here.