public class StatsInterface
extends java.lang.Object
| Constructor and Description |
|---|
StatsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI) |
| Modifier and Type | Method and Description |
|---|---|
DomainList |
getCollectionDomains(java.util.Date date,
java.lang.String collectionId,
int perPage,
int page)
Get a list of referring domains for a collection.
|
ReferrerList |
getCollectionReferrers(java.util.Date date,
java.lang.String domain,
java.lang.String collectionId,
int perPage,
int page)
Get a list of referrers from a given domain to a collection.
|
Stats |
getCollectionStats(java.lang.String collectionId,
java.util.Date date)
Get the number of views, comments and favorites on a collection for a given date.
|
java.util.List<Csv> |
getCSVFiles()
Returns a list of URLs for text files containing all your stats data (from November 26th 2007 onwards) for the currently auth'd user.
|
DomainList |
getPhotoDomains(java.util.Date date,
java.lang.String photoId,
int perPage,
int page)
Get a list of referring domains for a photo.
|
ReferrerList |
getPhotoReferrers(java.util.Date date,
java.lang.String domain,
java.lang.String photoId,
int perPage,
int page)
Get a list of referrers from a given domain to a photo.
|
DomainList |
getPhotosetDomains(java.util.Date date,
java.lang.String photosetId,
int perPage,
int page)
Get a list of referring domains for a photoset.
|
ReferrerList |
getPhotosetReferrers(java.util.Date date,
java.lang.String domain,
java.lang.String photosetId,
int perPage,
int page)
Get a list of referrers from a given domain to a photoset.
|
Stats |
getPhotosetStats(java.lang.String photosetId,
java.util.Date date)
Get the number of views, comments and favorites on a photoset for a given date.
|
Stats |
getPhotoStats(java.lang.String photoId,
java.util.Date date)
Get the number of views, comments and favorites on a photo for a given date.
|
DomainList |
getPhotostreamDomains(java.util.Date date,
int perPage,
int page)
Get a list of referring domains for a photostream.
|
ReferrerList |
getPhotostreamReferrers(java.util.Date date,
java.lang.String domain,
int perPage,
int page)
Get a list of referrers from a given domain to a user's photostream.
|
Stats |
getPhotostreamStats(java.util.Date date)
Get the number of views, comments and favorites on a photostream for a given date.
|
PhotoList<Photo> |
getPopularPhotos(java.util.Date date,
StatsSort sort,
int perPage,
int page)
List the photos with the most views, comments or favorites.
|
Totals |
getTotalViews(java.util.Date date)
Get the overall view counts for an account
|
public StatsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
public DomainList getCollectionDomains(java.util.Date date, java.lang.String collectionId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.collectionId - (Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic ReferrerList getCollectionReferrers(java.util.Date date, java.lang.String domain, java.lang.String collectionId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.domain - (Required) The domain to return referrers for. This should be a hostname (eg: "flickr.com") with no protocol or pathname.collectionId - (Optional) The id of the collection to get stats for. If not provided, stats for all collections will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic Stats getCollectionStats(java.lang.String collectionId, java.util.Date date) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.collectionId - (Required) The id (from the URL!) of the collection to get stats for.FlickrExceptionpublic java.util.List<Csv> getCSVFiles() throws FlickrException
FlickrExceptionpublic DomainList getPhotoDomains(java.util.Date date, java.lang.String photoId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.photoId - (Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic ReferrerList getPhotoReferrers(java.util.Date date, java.lang.String domain, java.lang.String photoId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.domain - (Required) The domain to return referrers for. This should be a hostname (eg: "flickr.com") with no protocol or pathname.photoId - (Optional) The id of the photo to get stats for. If not provided, stats for all photos will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic Stats getPhotoStats(java.lang.String photoId, java.util.Date date) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.photoId - (Required) The id of the photo to get stats for.FlickrExceptionpublic DomainList getPhotosetDomains(java.util.Date date, java.lang.String photosetId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.photosetId - (Optional) The id of the photoset to get stats for. If not provided, stats for all photos will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic ReferrerList getPhotosetReferrers(java.util.Date date, java.lang.String domain, java.lang.String photosetId, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.domain - (Required) The domain to return referrers for. This should be a hostname (eg: "flickr.com") with no protocol or pathname.photosetId - (Optional) The id of the photoset to get stats for. If not provided, stats for all sets will be returned.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic Stats getPhotosetStats(java.lang.String photosetId, java.util.Date date) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.photosetId - (Required) The id of the photoset to get stats for.FlickrExceptionpublic DomainList getPhotostreamDomains(java.util.Date date, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic ReferrerList getPhotostreamReferrers(java.util.Date date, java.lang.String domain, int perPage, int page) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.domain - (Required) The domain to return referrers for. This should be a hostname (eg: "flickr.com") with no protocol or pathname.perPage - (Optional) Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic Stats getPhotostreamStats(java.util.Date date) throws FlickrException
date - (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day.FlickrExceptionpublic PhotoList<Photo> getPopularPhotos(java.util.Date date, StatsSort sort, int perPage, int page) throws FlickrException
date - (Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.sort - (Optional) The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites. Other sort
options are available through flickr.photos.search.perPage - (Optional) Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.page - (Optional) The page of results to return. If this argument is omitted, it defaults to 1.FlickrExceptionpublic Totals getTotalViews(java.util.Date date) throws FlickrException
date - (Optional) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will
automatically be rounded down to the start of the day. If no date is provided, all time view counts will be returned.FlickrException