Flickrex.Flickr.Photosets.Comments (flickrex v0.8.1) View Source

Link to this section Summary

Functions

Delete a photoset comment as the currently authenticated user.

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

Returns the comments for a photoset.

Link to this section Types

Link to this section Functions

Link to this function

add_comment(photoset_id, comment_text, opts \\ [])

View Source

Specs

add_comment(arg(), arg(), opts()) :: operation()

Add a comment to a photoset.

This method requires authentication with "write" permission.

Arguments

  • photoset_id - The id of the photoset to add a comment to.

  • comment_text - Text of the comment

Example response

%{"comment" => %{"id" => "97777-12492-72057594037942601"}, "stat" => "ok"}
Link to this function

delete_comment(comment_id, opts \\ [])

View Source

Specs

delete_comment(arg(), opts()) :: operation()

Delete a photoset comment as the currently authenticated user.

This method requires authentication with "write" permission.

Arguments

  • comment_id - The id of the comment to delete from a photoset.
Link to this function

edit_comment(comment_id, comment_text, opts \\ [])

View Source

Specs

edit_comment(arg(), arg(), opts()) :: operation()

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

This method requires authentication with "write" permission.

Arguments

  • comment_id - The id of the comment to edit.

  • comment_text - Update the comment to this text.

Link to this function

get_list(photoset_id, opts \\ [])

View Source

Specs

get_list(arg(), opts()) :: operation()

Returns the comments for a photoset.

This method does not require authentication.

Arguments

  • photoset_id - The id of the photoset to fetch comments for.

Example response

%{
  "comments" => %{
    "comment" => %{
      "_content" => "Umm, I'm not sure, can I get back to you on that one?",
      "author" => "35468159852@N01",
      "authorname" => "Rev Dan Catt",
      "date_create" => "1141841470",
      "id" => "6065-109722179-72057594077818641",
      "permalink" => "http://www.flickr.com/photos/straup/109722179/#comment72057594077818641"
    },
    "photoset_id" => "109722179"
  },
  "stat" => "ok"
}