bshaffer/apiclient-mybusiness-service

Client library for Google MyBusiness API

v0.1 2022-12-16 00:14 UTC

This package is auto-updated.

Last update: 2024-04-16 03:16:02 UTC


README

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.