\Google\Photos\TypesShareInfo

Information about albums that are shared. This information is only included if you created the album, it is shared and you have the sharing scope.

Generated from protobuf message google.photos.types.ShareInfo

Summary

Methods
Properties
Constants
__construct()
getSharedAlbumOptions()
setSharedAlbumOptions()
getShareableUrl()
setShareableUrl()
getShareToken()
setShareToken()
getIsJoined()
setIsJoined()
getIsOwned()
setIsOwned()
getIsJoinable()
setIsJoinable()
No public properties found
No constants found
No protected methods found
$shared_album_options
$shareable_url
$share_token
$is_joined
$is_owned
$is_joinable
N/A
No private methods found
No private properties found
N/A

Properties

$shared_album_options

$shared_album_options : 

Options that control whether someone can add media items to, or comment on a shared album.

Generated from protobuf field .google.photos.types.SharedAlbumOptions shared_album_options = 1;

Type

$shareable_url

$shareable_url : 

A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care.

The shareableUrl parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's productUrl to access it instead. A shareableUrl is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string shareable_url = 2;

Type

$share_token

$share_token : 

A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.

A shareToken is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string share_token = 3;

Type

$is_joined

$is_joined : 

True if the user is joined to the album. This is always true for the owner of the album.

Generated from protobuf field bool is_joined = 4;

Type

$is_owned

$is_owned : 

True if the user owns the album.

Generated from protobuf field bool is_owned = 5;

Type

$is_joinable

$is_joinable : 

True if the album can be joined by users.

Generated from protobuf field bool is_joinable = 6;

Type

Methods

__construct()

__construct(array  $data = NULL) 

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type \Google\Photos\Types\SharedAlbumOptions $shared_album_options
      Options that control whether someone can add media items to, or comment on
      a shared album.
@type string $shareable_url
      A link to the shared Google Photos album. Anyone with the link can view the
      contents of the album, so it should be treated with care.
      The `shareableUrl` parameter is only returned if the album has link sharing
      turned on. If a user is already joined to an album that isn't link-shared,
      they can use the album's
      [`productUrl`](https://developers.google.com/photos/library/reference/rest/v1/albums#Album)
      to access it instead.
      A `shareableUrl` is invalidated if the owner turns off link sharing in the
      Google Photos app, or if the album is unshared.
@type string $share_token
      A token that is used to join, leave, or retrieve the details of a shared
      album on behalf of a user who isn't the owner.
      A `shareToken` is invalidated if the owner turns off link sharing in the
      Google Photos app, or if the album is unshared.
@type bool $is_joined
      True if the user is joined to the album. This is always true for
      the owner of the album.
@type bool $is_owned
      True if the user owns the album.
@type bool $is_joinable
      True if the album can be joined by users.

}

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getSharedAlbumOptions()

getSharedAlbumOptions() : \Google\Photos\Types\SharedAlbumOptions

Options that control whether someone can add media items to, or comment on a shared album.

Generated from protobuf field .google.photos.types.SharedAlbumOptions shared_album_options = 1;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Google\Photos\Types\SharedAlbumOptions

setSharedAlbumOptions()

setSharedAlbumOptions(\Google\Photos\Types\SharedAlbumOptions  $var) : $this

Options that control whether someone can add media items to, or comment on a shared album.

Generated from protobuf field .google.photos.types.SharedAlbumOptions shared_album_options = 1;

Parameters

\Google\Photos\Types\SharedAlbumOptions $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getShareableUrl()

getShareableUrl() : string

A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care.

The shareableUrl parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's productUrl to access it instead. A shareableUrl is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string shareable_url = 2;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string

setShareableUrl()

setShareableUrl(string  $var) : $this

A link to the shared Google Photos album. Anyone with the link can view the contents of the album, so it should be treated with care.

The shareableUrl parameter is only returned if the album has link sharing turned on. If a user is already joined to an album that isn't link-shared, they can use the album's productUrl to access it instead. A shareableUrl is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string shareable_url = 2;

Parameters

string $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getShareToken()

getShareToken() : string

A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.

A shareToken is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string share_token = 3;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

string

setShareToken()

setShareToken(string  $var) : $this

A token that is used to join, leave, or retrieve the details of a shared album on behalf of a user who isn't the owner.

A shareToken is invalidated if the owner turns off link sharing in the Google Photos app, or if the album is unshared.

Generated from protobuf field string share_token = 3;

Parameters

string $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getIsJoined()

getIsJoined() : boolean

True if the user is joined to the album. This is always true for the owner of the album.

Generated from protobuf field bool is_joined = 4;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

setIsJoined()

setIsJoined(boolean  $var) : $this

True if the user is joined to the album. This is always true for the owner of the album.

Generated from protobuf field bool is_joined = 4;

Parameters

boolean $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getIsOwned()

getIsOwned() : boolean

True if the user owns the album.

Generated from protobuf field bool is_owned = 5;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

setIsOwned()

setIsOwned(boolean  $var) : $this

True if the user owns the album.

Generated from protobuf field bool is_owned = 5;

Parameters

boolean $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this

getIsJoinable()

getIsJoinable() : boolean

True if the album can be joined by users.

Generated from protobuf field bool is_joinable = 6;

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

boolean

setIsJoinable()

setIsJoinable(boolean  $var) : $this

True if the album can be joined by users.

Generated from protobuf field bool is_joinable = 6;

Parameters

boolean $var
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor (2).phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

$this