\FlickrService
Synopsis
class FlickrService
extends RestfulService
{
- // members
- private static integer $flickr_soft_cache_expiry = 3600;
- private static integer $flickr_hard_cache_expiry = 86400;
- private static boolean $skip_error_logging = false;
- private $apiKey;
- private bool $apiAvailable;
- private Integer $responseCode;
- private String $responseMessage;
- // methods
- public void __construct()
- public ArrayList<FlickrPhotoset> getPhotosetsForUser()
- public void getPhotosetById()
- public ArrayList<FlickrPhoto> getPhotosInPhotoset()
- public ArrayList<FlickrPhoto|FlickrPhotoset> getCachedCall()
- public bool isAPIAvailable()
- public boolean softCacheExpired()
- public void setApiKey()
- public void getApiKey()
- public String getApiResponseCode()
- public String getApiResponseMessage()
- private void defaultParams()
Hierarchy
Extends
- RestfulService
Tasks
Line | Task |
---|---|
61+ | Currently returns all photosets. Optimisations could be made to only return a single page of results |
Members
private
Methods
private
public
- __construct()
- getApiKey()
- getApiResponseCode() — Get the API response code
- getApiResponseMessage() — Get the API response message
- getCachedCall() — This returns API responses saved to a SS_Cache file instead of the API response directly as the Flickr API is often not reliable
- getPhotosInPhotoset() — Returns all photos within a given photoset.
- getPhotosetById()
- getPhotosetsForUser()
- isAPIAvailable()
- setApiKey()
- softCacheExpired()