Throws an exception if and only if the response status indicates a failure
static void
_checkErrors
( $dom)
Performs object initializations
- Sets up character encoding
- Saves the API key
void
__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.)
string
getIdByEmail
(string $email)
Utility function to find Flickr User IDs for usernames.
(You can only find a user's photo with their NSID.)
string
getIdByUsername
(string $username)
-
string
$username: the username
Returns Flickr photo details by for the given photo ID
array
getImageDetails
(string $id)
Returns a reference to the REST client, instantiating it if necessary
Find Flickr photos by tag.
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.
-
string|array
$query: A single tag or an array of tags.
-
array
$options: Additional parameters to refine your query.
Finds 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 or email
-
array
$options: Additional parameters to refine your query.
Throws an exception if and only if any user options are invalid
void
_compareOptions
( $options, $validOptions)
-
array
$options: User options
-
array
$validOptions: Valid options
Prepare options for the request
array
_prepareOptions
(string $method, $options, $defaultOptions)
-
string
$method: Flickr Method to call
-
array
$options: User Options
-
array
$defaultOptions: Default Options
Validate Tag Search Options
void
_validateTagSearch
( $options)
Validate User Search Options
void
_validateUserSearch
( $options)