class FlickRaw::Flickr::Stats

Public Instance Methods

getCSVFiles() click to toggle source

flickr.stats.getCSVFiles request.

Returns a list of URLs for text files containing all your stats data (from November 26th 2007 onwards) for the currently auth'd user.

Please note, these files will only be available until June 1, 2010 Noon PDT. For more information please check out this FAQ, or just go download your files.

Arguments

Error codes

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

....
# Generated automatically from flickr api
  def getCSVFiles(*args)
    @flickr.call 'flickr.stats.getCSVFiles', *args
  end
getCollectionDomains(:date => 'date',:collection_id => 'collection_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getCollectionDomains request.

Get a list of referring domains for a collection

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

collection_id

The id of the collection to get stats for. If not provided, stats for all collections will be returned.

per_page

Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Collection not found

    The collection id was either invalid or was for a collection not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getCollectionDomains(*args)
    @flickr.call 'flickr.stats.getCollectionDomains', *args
  end
getCollectionReferrers(:date => 'date',:domain => 'domain',:collection_id => 'collection_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getCollectionReferrers request.

Get a list of referrers from a given domain to a collection

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

collection_id

The id of the collection to get stats for. If not provided, stats for all collections will be returned.

per_page

Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Collection not found

    The collection id was either invalid or was for a collection not owned by the calling user.

  • 5: Invalid domain

    The domain provided is not in the expected format.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getCollectionReferrers(*args)
    @flickr.call 'flickr.stats.getCollectionReferrers', *args
  end
getCollectionStats(:date => 'date',:collection_id => 'collection_id') click to toggle source

flickr.stats.getCollectionStats request.

Get the number of views on a collection for a given date.

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

collection_id (required)

The id of the collection to get stats for.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Collection not found

    The collection id was either invalid or was for a collection not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getCollectionStats(*args)
    @flickr.call 'flickr.stats.getCollectionStats', *args
  end
getPhotoDomains(:date => 'date',:photo_id => 'photo_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotoDomains request.

Get a list of referring domains for a photo

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photo_id

The id of the photo to get stats for. If not provided, stats for all photos will be returned.

per_page

Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photo not found

    The photo id was either invalid or was for a photo not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotoDomains(*args)
    @flickr.call 'flickr.stats.getPhotoDomains', *args
  end
getPhotoReferrers(:date => 'date',:domain => 'domain',:photo_id => 'photo_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotoReferrers request.

Get a list of referrers from a given domain to a photo

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photo_id

The id of the photo to get stats for. If not provided, stats for all photos will be returned.

per_page

Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photo not found

    The photo id was either invalid or was for a photo not owned by the calling user.

  • 5: Invalid domain

    The domain provided is not in the expected format.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotoReferrers(*args)
    @flickr.call 'flickr.stats.getPhotoReferrers', *args
  end
getPhotoStats(:date => 'date',:photo_id => 'photo_id') click to toggle source

flickr.stats.getPhotoStats request.

Get the number of views, comments and favorites on a photo for a given date.

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photo_id (required)

The id of the photo to get stats for.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photo not found

    The photo id was either invalid or was for a photo not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotoStats(*args)
    @flickr.call 'flickr.stats.getPhotoStats', *args
  end
getPhotosetDomains(:date => 'date',:photoset_id => 'photoset_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotosetDomains request.

Get a list of referring domains for a photoset

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photoset_id

The id of the photoset to get stats for. If not provided, stats for all sets will be returned.

per_page

Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photoset not found

    The photoset id was either invalid or was for a set not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotosetDomains(*args)
    @flickr.call 'flickr.stats.getPhotosetDomains', *args
  end
getPhotosetReferrers(:date => 'date',:domain => 'domain',:photoset_id => 'photoset_id',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotosetReferrers request.

Get a list of referrers from a given domain to a photoset

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photoset_id

The id of the photoset to get stats for. If not provided, stats for all sets will be returned.

per_page

Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photoset not found

    The photoset id was either invalid or was for a set not owned by the calling user.

  • 5: Invalid domain

    The domain provided is not in the expected format.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotosetReferrers(*args)
    @flickr.call 'flickr.stats.getPhotosetReferrers', *args
  end
getPhotosetStats(:date => 'date',:photoset_id => 'photoset_id') click to toggle source

flickr.stats.getPhotosetStats request.

Get the number of views on a photoset for a given date.

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

photoset_id (required)

The id of the photoset to get stats for.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 4: Photoset not found

    The photoset id was either invalid or was for a set not owned by the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotosetStats(*args)
    @flickr.call 'flickr.stats.getPhotosetStats', *args
  end
getPhotostreamDomains(:date => 'date',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotostreamDomains request.

Get a list of referring domains for a photostream

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

per_page

Number of domains to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotostreamDomains(*args)
    @flickr.call 'flickr.stats.getPhotostreamDomains', *args
  end
getPhotostreamReferrers(:date => 'date',:domain => 'domain',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPhotostreamReferrers request.

Get a list of referrers from a given domain to a user's photostream

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

per_page

Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 5: Invalid domain

    The domain provided is not in the expected format.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotostreamReferrers(*args)
    @flickr.call 'flickr.stats.getPhotostreamReferrers', *args
  end
getPhotostreamStats(:date => 'date') click to toggle source

flickr.stats.getPhotostreamStats request.

Get the number of views on a user's photostream for a given date.

Arguments

date (required)

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPhotostreamStats(*args)
    @flickr.call 'flickr.stats.getPhotostreamStats', *args
  end
getPopularPhotos(:date => 'date',:sort => 'sort',:per_page => 'per_page',:page => 'page') click to toggle source

flickr.stats.getPopularPhotos request.

List the photos with the most views, comments or favorites

Arguments

date

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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

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.

per_page

Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.

page

The page of results to return. If this argument is omitted, it defaults to 1.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 5: Invalid sort

    The sort provided is not valid

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getPopularPhotos(*args)
    @flickr.call 'flickr.stats.getPopularPhotos', *args
  end
getTotalViews(:date => 'date') click to toggle source

flickr.stats.getTotalViews request.

Get the overall view counts for an account

Arguments

date

Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.

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.

Error codes

  • 1: User does not have stats

    The user you have requested stats has not enabled stats on their account.

  • 2: No stats for that date

    No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.

  • 3: Invalid date

    The date provided could not be parsed

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed / Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in / Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 106: Write operation failed

    The requested operation failed due to a temporary issue.

  • 111: Format “xxx” not found

    The requested response format was not found.

  • 112: Method “xxx” not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

  • 116: Bad URL found

    One or more arguments contained a URL that has been used for abuse on Flickr.

Returns

# Generated automatically from flickr api
  def getTotalViews(*args)
    @flickr.call 'flickr.stats.getTotalViews', *args
  end