aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/api/media_interaction.rst
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-07-23 00:23:23 +0100
committerJessica Tallon <jessica@megworld.co.uk>2014-07-23 00:23:23 +0100
commitaab62394773c27e73996e8cb8fb425db3fa62d49 (patch)
tree5f7e8a14f557f9917179fc8f2d4e9987ef98097a /docs/source/api/media_interaction.rst
parent59ff4790c9f33fe13ee0a411d4152bd256eaa06a (diff)
parenta14d90c2db5ff96bdd72009a07f1afc0e8ef3595 (diff)
downloadmediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.tar.lz
mediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.tar.xz
mediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.zip
Merge branch 'Federation'
Diffstat (limited to 'docs/source/api/media_interaction.rst')
-rw-r--r--docs/source/api/media_interaction.rst65
1 files changed, 65 insertions, 0 deletions
diff --git a/docs/source/api/media_interaction.rst b/docs/source/api/media_interaction.rst
new file mode 100644
index 00000000..41114a71
--- /dev/null
+++ b/docs/source/api/media_interaction.rst
@@ -0,0 +1,65 @@
+.. MediaGoblin Documentation
+
+ Written in 2011, 2012 by MediaGoblin contributors
+
+ To the extent possible under law, the author(s) have dedicated all
+ copyright and related and neighboring rights to this software to
+ the public domain worldwide. This software is distributed without
+ any warranty.
+
+ You should have received a copy of the CC0 Public Domain
+ Dedication along with this software. If not, see
+ <http://creativecommons.org/publicdomain/zero/1.0/>.
+
+Pump.io supports a number of different interactions that can happen against
+media. Theser are commenting, liking/favoriting and (re-)sharing. Currently
+MediaGoblin supports just commenting although other interactions will come at
+a later date.
+
+--------------
+How to comment
+--------------
+
+.. warning:: Commenting on a comment currently is NOT supported.
+
+Commenting is done by posting a comment activity to the users feed. The
+activity should look similiar to::
+
+ {
+ "verb": "post",
+ "object": {
+ "objectType": "comment",
+ "inReplyTo": <media>
+ }
+ }
+
+This is where `<media>` is the media object you have got with from the server.
+
+----------------
+Getting comments
+----------------
+
+The media object you get back should have a `replies` section. This should
+be an object which contains the number of replies and if there are any (i.e.
+number of replies > 0) then `items` will include an array of every item::
+
+ {
+ "totalItems": 2,
+ "items: [
+ {
+ "id": 1,
+ "objectType": "comment",
+ "content": "I'm a comment ^_^",
+ "author": <author user object>
+ },
+ {
+ "id": 4,
+ "objectType": "comment",
+ "content": "Another comment! Blimey!",
+ "author": <author user object>
+ }
+ ],
+ "url": "http://some.server/api/images/1/comments/"
+ }
+
+