Class for manipulating picasa through the google data api.
More...
|
string const | ALBUM_PHOTO_LIST = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/' |
| photo list url
|
|
string const | LIST_ALBUMS_URL = 'https://picasaweb.google.com/data/feed/api/user/default' |
| album list url
|
|
string const | MANAGE_URL = 'http://picasaweb.google.com/' |
| manage files url
|
|
string const | PHOTO_SEARCH_URL = 'https://picasaweb.google.com/data/feed/api/user/default?kind=photo&q=' |
| search url
|
|
string const | REALM = 'http://picasaweb.google.com/data/' |
| Realm for authentication.
|
|
string const | UPLOAD_LOCATION = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/default' |
| Upload url.
|
|
Class for manipulating picasa through the google data api.
Docs for this can be found here:
- Copyright
- Dan Poltawski talkt.nosp@m.odan.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
Constructor.
- Parameters
-
google_oauth | $googleoauth | oauth curl class for making authenticated requests |
◆ do_photo_search()
google_picasa::do_photo_search |
( |
|
$query | ) |
|
Does text search on the users photos and returns matches in format for picasa api.
- Parameters
-
- Return values
-
mixed::$files | A list of files for the file picker |
◆ get_album_photos()
google_picasa::get_album_photos |
( |
|
$albumid | ) |
|
Returns list of photos in album specified.
- Parameters
-
int | $albumid | Photo album to list photos from |
- Return values
-
mixed::$files | A list of files for the file picker |
◆ get_albums()
google_picasa::get_albums |
( |
| ) |
|
Gets all the users albums and returns them as a list of folders for the file picker.
- Return values
-
mixes::$files | Array in the format get_listing uses for folders |
◆ get_file_list()
google_picasa::get_file_list |
( |
|
$path = '' | ) |
|
Returns list of photos for file picker.
If top level then returns list of albums, otherwise photos within an album.
- Parameters
-
string | $path | The path to files (assumed to be albumid) |
- Return values
-
mixed::$files | A list of files for the file picker |
◆ get_last_album_name()
google_picasa::get_last_album_name |
( |
| ) |
|
Returns the name of the album for which get_photo_details was called last time.
- Return values
-
◆ get_photo_details()
google_picasa::get_photo_details |
( |
|
$rawxml | ) |
|
Recieves XML from a picasa list of photos and returns array in format for file picker.
- Parameters
-
string | $rawxml | XML from picasa api |
- Return values
-
mixed::$files | A list of files for the file picker |
◆ send_file()
google_picasa::send_file |
( |
|
$file | ) |
|
Sends a file object to picasaweb.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: