Pick a random photo.
This commit is contained in:
parent
300a07b4ab
commit
88e1fbf28e
@ -39,6 +39,10 @@ alert("Search for the photo");
|
|||||||
$photos = $root->get("", array("name" => "Sample"));
|
$photos = $root->get("", array("name" => "Sample"));
|
||||||
alert("Found: {$photos->members[0]}");
|
alert("Found: {$photos->members[0]}");
|
||||||
|
|
||||||
|
alert("Grab a random photo");
|
||||||
|
$photos = $root->get("", array("random" => "true"));
|
||||||
|
alert("Found: {$photos->members[0]}");
|
||||||
|
|
||||||
alert("Tag the album");
|
alert("Tag the album");
|
||||||
$tag->add()
|
$tag->add()
|
||||||
->set_value("url", $album->url)
|
->set_value("url", $album->url)
|
||||||
|
Reference in New Issue
Block a user