* Manage photos, videos, and albums in Google Photos
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_PhotosLibrary extends Google_Service { /** View the photos, videos and albums in your Google Photos. */ const DRIVE_PHOTOS_READONLY = "https://www.googleapis.com/auth/drive.photos.readonly"; /** View and manage your Google Photos library. */ const PHOTOSLIBRARY = "https://www.googleapis.com/auth/photoslibrary"; /** Add to your Google Photos library. */ const PHOTOSLIBRARY_APPENDONLY = "https://www.googleapis.com/auth/photoslibrary.appendonly"; /** View your Google Photos library. */ const PHOTOSLIBRARY_READONLY = "https://www.googleapis.com/auth/photoslibrary.readonly"; /** Manage photos added by this app. */ const PHOTOSLIBRARY_READONLY_APPCREATEDDATA = "https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata"; /** Manage and add to shared albums on your behalf. */ const PHOTOSLIBRARY_SHARING = "https://www.googleapis.com/auth/photoslibrary.sharing"; public $albums; public $mediaItems; public $sharedAlbums; /** * Constructs the internal representation of the PhotosLibrary service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://photoslibrary.googleapis.com/'; $this->servicePath = ''; $this->version = 'v1'; $this->serviceName = 'photoslibrary'; $this->albums = new Google_Service_PhotosLibrary_Resource_Albums( $this, $this->serviceName, 'albums', array( 'methods' => array( 'addEnrichment' => array( 'path' => 'v1/albums/{+albumId}:addEnrichment', 'httpMethod' => 'POST', 'parameters' => array( 'albumId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v1/albums', 'httpMethod' => 'POST', 'parameters' => array(), ),'get' => array( 'path' => 'v1/albums/{+albumId}', 'httpMethod' => 'GET', 'parameters' => array( 'albumId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/albums', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'share' => array( 'path' => 'v1/albums/{+albumId}:share', 'httpMethod' => 'POST', 'parameters' => array( 'albumId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->mediaItems = new Google_Service_PhotosLibrary_Resource_MediaItems( $this, $this->serviceName, 'mediaItems', array( 'methods' => array( 'batchCreate' => array( 'path' => 'v1/mediaItems:batchCreate', 'httpMethod' => 'POST', 'parameters' => array(), ),'get' => array( 'path' => 'v1/mediaItems/{+mediaItemId}', 'httpMethod' => 'GET', 'parameters' => array( 'mediaItemId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'search' => array( 'path' => 'v1/mediaItems:search', 'httpMethod' => 'POST', 'parameters' => array(), ), ) ) ); $this->sharedAlbums = new Google_Service_PhotosLibrary_Resource_SharedAlbums( $this, $this->serviceName, 'sharedAlbums', array( 'methods' => array( 'join' => array( 'path' => 'v1/sharedAlbums:join', 'httpMethod' => 'POST', 'parameters' => array(), ),'list' => array( 'path' => 'v1/sharedAlbums', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); } }