Flickrex.Flickr.Groups.Discuss.Replies (flickrex v0.8.1) View Source

Link to this section Summary

Functions

Post a new reply to a group discussion topic.

Delete a reply from a group topic.

Get information on a group topic reply.

Get a list of replies from a group discussion topic.

Link to this section Types

Link to this section Functions

Link to this function

add(group_id, topic_id, message, opts \\ [])

View Source

Specs

add(arg(), arg(), arg(), opts()) :: operation()

Post a new reply to a group discussion topic.

This method requires authentication with "write" permission.

Arguments

  • group_id - Pass in the group id to where the topic belongs. Can be NSID or group alias. Making this parameter optional for legacy reasons, but it is highly recommended to pass this in to get faster performance.

  • topic_id - The ID of the topic to post a comment to.

  • message - The message to post to the topic.

Link to this function

delete(group_id, topic_id, reply_id, opts \\ [])

View Source

Specs

delete(arg(), arg(), arg(), opts()) :: operation()

Delete a reply from a group topic.

This method requires authentication with "delete" permission.

Arguments

  • group_id - Pass in the group id to where the topic belongs. Can be NSID or group alias. Making this parameter optional for legacy reasons, but it is highly recommended to pass this in to get faster performance.

  • topic_id - The ID of the topic the post is in.

  • reply_id - The ID of the reply to delete.

Link to this function

edit(group_id, topic_id, reply_id, message, opts \\ [])

View Source

Specs

edit(arg(), arg(), arg(), arg(), opts()) :: operation()

Edit a topic reply.

This method requires authentication with "write" permission.

Arguments

  • group_id - Pass in the group id to where the topic belongs. Can be NSID or group alias. Making this parameter optional for legacy reasons, but it is highly recommended to pass this in to get faster performance.

  • topic_id - The ID of the topic the post is in.

  • reply_id - The ID of the reply post to edit.

  • message - The message to edit the post with.

Link to this function

get_info(group_id, topic_id, reply_id, opts \\ [])

View Source

Specs

get_info(arg(), arg(), arg(), opts()) :: operation()

Get information on a group topic reply.

This method does not require authentication.

Arguments

  • group_id - Pass in the group id to where the topic belongs. Can be NSID or group alias. Making this parameter optional for legacy reasons, but it is highly recommended to pass this in to get faster performance.

  • topic_id - The ID of the topic the post is in.

  • reply_id - The ID of the reply to fetch.

Example response

%{
  "reply" => %{
    "author" => "30134652@N05",
    "authorname" => "JAMAL'S ACCOUNT",
    "can_delete" => "1",
    "can_edit" => "1",
    "datecreate" => "1337975921",
    "iconfarm" => "0",
    "iconserver" => "0",
    "id" => "72157607082559968",
    "is_pro" => "0",
    "lastedit" => "0",
    "message" => %{"_content" => "...well, too bad."},
    "role" => "admin"
  },
  "stat" => "ok"
}
Link to this function

get_list(group_id, topic_id, per_page, opts \\ [])

View Source

Specs

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

Get a list of replies from a group discussion topic.

This method does not require authentication.

Arguments

  • group_id - Pass in the group id to where the topic belongs. Can be NSID or group alias. Making this parameter optional for legacy reasons, but it is highly recommended to pass this in to get faster performance.

  • topic_id - The ID of the topic to fetch replies for.

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

Options

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

Example response

%{
  "replies" => %{
    "reply" => [
      %{
        "author" => "41380738@N05",
        "authorname" => "BlueRidgeKitties",
        "can_delete" => "0",
        "can_edit" => "0",
        "datecreate" => "1287071539",
        "iconfarm" => "3",
        "iconserver" => "2459",
        "id" => "72157625163054214",
        "lastedit" => "0",
        "message" => %{
          "_content" => "*LOL* The universe is full of <a href="http://www.flickr.com/groups/visualstory/discuss/72157622533160886/">giant furry space monsters</a> it seems! Love it."
        },
        "role" => "member"
      },
      %{
        "author" => "52101018@N00",
        "authorname" => "pterandon",
        "can_delete" => "0",
        "can_edit" => "0",
        "datecreate" => "1287076748",
        "iconfarm" => "1",
        "iconserver" => "1",
        "id" => "72157625163539300",
        "lastedit" => "0",
        "message" => %{
          "_content" => "Great work. Good focus on different aspects of scene in each frame.  Funny ending-- even better that I didn't notice the cat right away!  Being a hopeless Trekkie, I was wondering why Han was doing the Vulcan death grip on one of his allies...."
        },
        "role" => "admin"
      },
      %{
        "author" => "54830408@N02",
        "authorname" => "tay.grisham",
        "can_delete" => "0",
        "can_edit" => "0",
        "datecreate" => "1287089858",
        "iconfarm" => "0",
        "iconserver" => "0",
        "id" => "72157625040116805",
        "lastedit" => "0",
        "message" => %{
          "_content" => "On a scale of 1 to 10 of awesome. This is a 15"
        },
        "role" => "member"
      }
    ],
    "topic" => %{
      "author" => "53930889@N04",
      "author_iconfarm" => "6",
      "author_iconserver" => "5169",
      "authorname" => "Smallportfolio_jm08",
      "can_delete" => "0",
      "can_edit" => "0",
      "can_reply" => "0",
      "datecreate" => "1287070965",
      "datelastpost" => "1336905518",
      "group_id" => "46744914@N00",
      "iconfarm" => "1",
      "iconserver" => "1",
      "is_locked" => "",
      "is_sticky" => "0",
      "message" => %{
        "_content" => "<div><span class="photo_container pc_m bbml_img"><a href="/photos/53930889@N04/5080874079/" title="Star Wars 1 by Smallportfolio_jm08"><img class="notsowide" src="http://farm5.staticflickr.com/4035/5080874079_684cf874e0_m.jpg" width="240" height="180" alt="Star Wars 1 by Smallportfolio_jm08"  class="pc_img" border="0" /></a></span></div>\n\n<div><span class="photo_container pc_m bbml_img"><a href="/photos/53930889@N04/5081467846/" title="Star Wars 2 by Smallportfolio_jm08"><img class="notsowide" src="http://farm5.staticflickr.com/4071/5081467846_2eec86176d_m.jpg" width="240" height="180" alt="Star Wars 2 by Smallportfolio_jm08"  class="pc_img" border="0" /></a></span></div>\n\n<div><span class="photo_container pc_m bbml_img"><a href="/photos/53930889@N04/5081467886/" title="Star Wars 3 by Smallportfolio_jm08"><img class="notsowide" src="http://farm5.staticflickr.com/4021/5081467886_d8cca6c8e8_m.jpg" width="240" height="180" alt="Star Wars 3 by Smallportfolio_jm08"  class="pc_img" border="0" /></a></span></div>\n\n<div><span class="photo_container pc_m bbml_img"><a href="/photos/53930889@N04/5081467910/" title="Star Wars 4 by Smallportfolio_jm08"><img class="notsowide" src="http://farm5.staticflickr.com/4084/5081467910_274bb11fdc_m.jpg" width="240" height="180" alt="Star Wars 4 by Smallportfolio_jm08"  class="pc_img" border="0" /></a></span></div>\n\n<div><span class="photo_container pc_m bbml_img"><a href="/photos/53930889@N04/5081467948/" title="Star Wars 5 by Smallportfolio_jm08"><img class="notsowide" src="http://farm5.staticflickr.com/4154/5081467948_1a5f200bc0_m.jpg" width="240" height="180" alt="Star Wars 5 by Smallportfolio_jm08"  class="pc_img" border="0" /></a></span></div>"
      },
      "name" => "Tell a story in 5 frames (Visual story telling)",
      "page" => "1",
      "pages" => "2",
      "per_page" => "3",
      "role" => "member",
      "subject" => "A long time ago in a galaxy far, far away...",
      "topic_id" => "72157625038324579",
      "total" => "8"
    }
  },
  "stat" => "ok"
}