Flickrex.Flickr.Photos.Suggestions (flickrex v0.8.1) View Source

Link to this section 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.

Link to this section Types

Link to this section Functions

Link to this function

approve_suggestion(suggestion_id, opts \\ [])

View Source

Specs

approve_suggestion(arg(), opts()) :: operation()

Approve a suggestion for a photo.

This method requires authentication with "write" permission.

Arguments

  • suggestion_id - The unique ID for the location suggestion to approve.

Specs

get_list(opts()) :: operation()

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

This method requires authentication with "read" permission.

Options

  • photo_id - Only show suggestions for a single photo.

  • status_id - Only show suggestions with a given status. <ul> <li><strong>0</strong>, pending</li> <li><strong>1</strong>, approved</li> <li><strong>2</strong>, rejected</li> </ul> The default is pending (or "0").

Link to this function

reject_suggestion(suggestion_id, opts \\ [])

View Source

Specs

reject_suggestion(arg(), opts()) :: operation()

Reject a suggestion for a photo.

This method requires authentication with "write" permission.

Arguments

  • suggestion_id - The unique ID of the suggestion to reject.
Link to this function

remove_suggestion(suggestion_id, opts \\ [])

View Source

Specs

remove_suggestion(arg(), opts()) :: operation()

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

This method requires authentication with "write" permission.

Arguments

  • suggestion_id - The unique ID for the location suggestion to approve.
Link to this function

suggest_location(photo_id, lat, lon, opts \\ [])

View Source

Specs

suggest_location(arg(), arg(), arg(), opts()) :: operation()

Suggest a geotagged location for a photo.

This method requires authentication with "write" permission.

Arguments

  • photo_id - The photo whose location you are suggesting.

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

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

Options

  • 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.