flickrex v0.3.0 Flickr.Photos.Suggestions

Summary

Functions

Approve a suggestion for a photo

Return a list of suggestions for a user that are pending approval

Reject a suggestion for a photo

Remove a suggestion, made by the calling user, from a photo

Suggest a geotagged location for a photo

Types

args()
args() :: Keyword.t
client()
client() :: Flickrex.Client.t
response()
response() :: Flickrex.Parser.response

Functions

approve_suggestion(client, args \\ [])
approve_suggestion(client, args) :: response

Approve a suggestion for a photo.

This method requires authentication with “write” permission.

Arguments

  • suggestion_id - (required) The unique ID for the location suggestion to approve.
get_list(client, args \\ [])
get_list(client, args) :: response

Return a list of suggestions for a user that are pending approval.

This method requires authentication with “read” permission.

Arguments

  • photo_id - Only show suggestions for a single photo.

  • status_id - Only show suggestions with a given status.

    • 0, pending
    • 1, approved
    • 2, rejected
    The default is pending (or “0”).

reject_suggestion(client, args \\ [])
reject_suggestion(client, args) :: response

Reject a suggestion for a photo.

This method requires authentication with “write” permission.

Arguments

  • suggestion_id - (required) The unique ID of the suggestion to reject.
remove_suggestion(client, args \\ [])
remove_suggestion(client, args) :: response

Remove a suggestion, made by the calling user, from a photo.

This method requires authentication with “write” permission.

Arguments

  • suggestion_id - (required) The unique ID for the location suggestion to approve.
suggest_location(client, args \\ [])
suggest_location(client, args) :: response

Suggest a geotagged location for a photo.

This method requires authentication with “write” permission.

Arguments

  • photo_id - (required) The photo whose location you are suggesting.

  • lat - (required) The latitude whose valid range is -90 to 90. Anything more than 6 decimal places will be truncated.

  • lon - (required) The longitude whose valid range is -180 to 180. Anything more than 6 decimal places will be truncated.

  • accuracy - Recorded accuracy level of the location information. World level is 1, Country is ~3, Region ~6, City ~11, Street ~16. Current range is 1-16. Defaults to 16 if not specified.

  • woe_id - The WOE ID of the location used to build the location hierarchy for the photo.

  • place_id - The Flickr Places ID of the location used to build the location hierarchy for the photo.

  • note - A short note or history to include with the suggestion.