Using the Google Photos Library API your app can read, write,
and share photos and videos in Google Photos.
Requirements
Setup
Configure the Google API PHP Client with the following scope:
https://www.googleapis.com/auth/photoslibrary
See Google API PHP Client module for more setup details.
Google Photos API Reference
https://developers.google.com/photos/library/guides/overview
How to use the Google Photos API client
Example:
$GooglePhotosService = \Drupal::service('google_photos_api.client');
try {
$albums = $GooglePhotosService->googleServicePhotosLibrary->albums->listAlbums();
// ksm($albums);
}
catch (Exception $e) {
// ksm($e);
}
Related Modules
-
Google API PHP Client
Google APIs give you programmatic access to Google Maps, Google Drive, YouTube, and many other Google products. -
Google My Business API
Google My Business provides a fast and easy way for businesses, products, brands, artists, and organisations to manage their online presence with Google. -
Google Photos API
Using the Google Photos Library API your app can read, write and share photos and videos in Google Photos.
Project information
- Project categories: Integrations
11 sites report using this module
- Created by dakku on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

