bshaffer / google-mybusiness-php-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google MyBusiness Client Library for PHP

IMPORTANT: This is a fork of the Google API PHP Client, but with support for a previous (and currently deprecated) API with existing non-deprecated endpoints. See googleapis/google-api-php-client-services#580

Installation

Composer

You can install via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

composer require bshaffer/apiclient-mybusiness-service

Be sure to include the autoloader:

require_once '/path/to/your-project/vendor/autoload.php';

Examples

Here is an example of how to use the MyBusiness API:

require 'vendor/autoload.php';

$client = new Google\Client();
$mybusiness = new Google_Service_MyBusiness($client);
$parent = 'accounts/{YOUR_ACCOUNT}/locations/{YOUR_LOCATION}';
$response = $mybusiness->accounts_locations_reviews->listAccountsLocationsReviews($parent);

See the google-api-php-client repo for more usage instructions.

Cleaning up unused services

There are over 200 Google API services. See the google-api-php-client README for how to clean them up.

About


Languages

Language:PHP 100.0%