From 47e0eaa98e533930607b19cbf24161df923d2047 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 2 Jun 2010 22:14:13 -0700 Subject: [PATCH] Update the example for grabbing a random photo to tag ?random=true to the URL instead of using set() since that now only applies to entity changes. --- client/example.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/example.php b/client/example.php index 64597d2e..934c6d23 100644 --- a/client/example.php +++ b/client/example.php @@ -60,8 +60,7 @@ alert("Found: {$photos->data->members[0]}"); alert("Grab a random photo"); -$photos = Gallery3::factory($root->url, $auth) - ->set("random", "true") +$photos = Gallery3::factory("{$root->url}?random=true", $auth) ->load(); alert("Found: {$photos->data->members[0]}");