Check Result for Errors
static void
_checkErrors
( $dom)
Zend_Service_Flickr Constructor, setup character encoding
Zend_Service_Flickr
__construct
(string $apiKey)
-
string
$apiKey: Your Flickr API key
Utility function to find Flickr User IDs for emails.
(You can only find a user's photo with their NSID.)
integer
getIdByEmail
(string $email)
Utility function to find Flickr User IDs for usernames.
(You can only find a user's photo with their NSID.)
integer
getIdByUsername
(string $username)
-
string
$username: the username
Utility function to find Flickr photo details by ID.
Find Flickr photos by tag.
Additional query options include:
- per_page: how many results to return per query
- page: the starting page offset. first result will be (page -1)*per_page + 1
- tag_mode: Either 'any' for an OR combination of tags,
or 'all' for an AND combination. Default is 'any'.
- min_upload_date: Minimum upload date to search on. Date should be a unix timestamp.
- max_upload_date: Maximum upload date to search on. Date should be a unix timestamp.
- min_taken_date: Minimum upload date to search on. Date should be a MySQL datetime.
- max_taken_date: Maximum upload date to search on. Date should be a MySQL datetime.
-
mixed
$query: A single tag or an array of tags.
-
array
$options: Additional parameters to refine your query.
Find Flickr photos by a user's username or email.
Additional query options include:
- per_page: how many results to return per query
- page: the starting page offset. first result will be (page - 1) * per_page + 1
- min_upload_date: Minimum upload date to search on. Date should be a unix timestamp.
- max_upload_date: Maximum upload date to search on. Date should be a unix timestamp.
- min_taken_date: Minimum upload date to search on. Date should be a MySQL datetime.
- max_taken_date: Maximum upload date to search on. Date should be a MySQL datetime.
-
string
$query: username
-
array
$options: Additional parameters to refine your query.
Check whether the user options are valid
void
_compareOptions
(array $options, array $validOptions)
-
array
$options: User options
-
array
$validOptions: Valid options
Prepare options for the request
array
_prepareOptions
(string $method, array $options, array $defaultOptions)
-
string
$method: Flickr Method to call
-
array
$options: User Options
-
array
$defaultOptions: Default Options
Validate Tag Search Options
void
_validateTagSearch
(array $options)
Validate User Search Options
void
_validateUserSearch
(array $options)