Service/Flickr.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Flickr
- Version
- $Id$
\Zend_Service_Flickr
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods

__construct(string $apiKey) : voidPerforms object initializations
| Name | Type | Description |
|---|---|---|
| $apiKey | string | Your Flickr API key |

_checkErrors(\DOMDocument $dom) : voidThrows an exception if and only if the response status indicates a failure
| Name | Type | Description |
|---|---|---|
| $dom | \DOMDocument |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

_compareOptions(array $options, array $validOptions) : voidThrows an exception if and only if any user options are invalid
| Name | Type | Description |
|---|---|---|
| $options | array | User options |
| $validOptions | array | Valid options |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

_prepareOptions(string $method, array $options, array $defaultOptions) : arrayPrepare options for the request
| Name | Type | Description |
|---|---|---|
| $method | string | Flickr Method to call |
| $options | array | User Options |
| $defaultOptions | array | Default Options |
| Type | Description |
|---|---|
| array | Merged array of user and default/required options |

_validateGroupPoolGetPhotos(array $options) : voidValidate Group Search Options
| Name | Type | Description |
|---|---|---|
| $options | array |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

_validateTagSearch(array $options) : voidValidate Tag Search Options
| Name | Type | Description |
|---|---|---|
| $options | array |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

_validateUserSearch(array $options) : voidValidate User Search Options
| Name | Type | Description |
|---|---|---|
| $options | array |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

getIdByEmail(string $email) : stringUtility function to find Flickr User IDs for emails.
| Name | Type | Description |
|---|---|---|
| string | the email |
| Type | Description |
|---|---|
| string | the NSID (userid) |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

getIdByUsername(string $username) : stringUtility function to find Flickr User IDs for usernames.
| Name | Type | Description |
|---|---|---|
| $username | string | the username |
| Type | Description |
|---|---|
| string | the NSID (userid) |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

getImageDetails(string $id) : arrayReturns Flickr photo details by for the given photo ID
| Name | Type | Description |
|---|---|---|
| $id | string | the NSID |
| Type | Description |
|---|---|
| array | of Zend_Service_Flickr_Image, details for the specified image |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

getRestClient() : \Zend_Rest_ClientReturns a reference to the REST client, instantiating it if necessary
| Type | Description |
|---|---|
| \Zend_Rest_Client |

groupPoolGetPhotos(string $query, array $options = array()) : \Zend_Service_Flickr_ResultSetFinds photos in a group's pool.
| Name | Type | Description |
|---|---|---|
| $query | string | group id |
| $options | array | Additional parameters to refine your query. |
| Type | Description |
|---|---|
| \Zend_Service_Flickr_ResultSet |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

tagSearch(string | array $query, array $options = array()) : \Zend_Service_Flickr_ResultSetFind Flickr photos by tag.
| Name | Type | Description |
|---|---|---|
| $query | string | array | A single tag or an array of tags. |
| $options | array | Additional parameters to refine your query. |
| Type | Description |
|---|---|
| \Zend_Service_Flickr_ResultSet |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |

userSearch(string $query, array $options = null) : \Zend_Service_Flickr_ResultSetFinds photos by a user's username or email.
| Name | Type | Description |
|---|---|---|
| $query | string | username or email |
| $options | array | Additional parameters to refine your query. |
| Type | Description |
|---|---|
| \Zend_Service_Flickr_ResultSet |
| Exception | Description |
|---|---|
| \Zend_Service_Exception |