flickrex v0.3.0 Flickr.Photos.Comments

Summary

Functions

Add comment to a photo as the currently authenticated user

Delete a comment as the currently authenticated user

Edit the text of a comment as the currently authenticated user

Returns the comments for a photo

Return the list of photos belonging to your contacts that have been commented on recently

Types

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

Functions

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

Add comment to a photo as the currently authenticated user.

This method requires authentication with “write” permission.

Arguments

  • photo_id - (required) The id of the photo to add a comment to.

  • comment_text - (required) Text of the comment

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

Delete a comment as the currently authenticated user.

This method requires authentication with “write” permission.

Arguments

  • comment_id - (required) The id of the comment to edit.
edit_comment(client, args \\ [])
edit_comment(client, args) :: response

Edit the text of a comment as the currently authenticated user.

This method requires authentication with “write” permission.

Arguments

  • comment_id - (required) The id of the comment to edit.

  • comment_text - (required) Update the comment to this text.

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

Returns the comments for a photo

This method does not require authentication.

Arguments

  • photo_id - (required) The id of the photo to fetch comments for.

  • min_comment_date - Minimum date that a a comment was added. The date should be in the form of a unix timestamp.

  • max_comment_date - Maximum date that a comment was added. The date should be in the form of a unix timestamp.

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

Return the list of photos belonging to your contacts that have been commented on recently.

This method requires authentication with “read” permission.

Arguments

  • date_lastcomment - Limits the resultset to photos that have been commented on since this date. The date should be in the form of a Unix timestamp.

    The default, and maximum, offset is (1) hour.

  • contacts_filter - A comma-separated list of contact NSIDs to limit the scope of the query to.

  • extras - A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: description, license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o

  • per_page - Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.

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