Comment approve

POST https://api.publishme.se/1/blogs/<blogid>/comments/<commentid>/seen

Description
Publish a queued comment or set it seen.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required
comment_id ID of comment to approve in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required

RETURNS
{success: Boolean, comment: Comment, number_of_unseen_comments: number}
Comment delete

POST https://api.publishme.se/1/blogs/<blogid>/comments/<commentid>/delete

Description
Delete a comment.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required
comment_id ID of comment to delete to in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required

RETURNS
{success: Boolean, number_of_unseen_comments: number}
Comment reply

POST https://api.publishme.se/1/blogs/<blogid>/comments/<commentid>/reply

Description
Post a reply to a comment. The owner of a blog may comment on a comment made
on an entry they wrote. You may update the reply text by posting to this
endpoint again.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required
comment_id ID of comment to reply to in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required

POST PARAMETERS
body Body text of the reply. required

RETURNS
{success: Boolean, comment: Comment, reply: Comment, number_of_unseen_comments: number}
Entries with unseen comments

GET https://api.publishme.se/1/blogs/<blogid>/entries_with_unseen_comments

Description
List entries with unseen comments for blog with ID blog_id. You will get two lists, one with
entries and one with comments. The response is limited to 20 unseen comments per entry. It's up to you to check which entry a
comment belongs to.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required
limit Number, limit the response to limit elements. optional
skip Number, skip to entry #skip. optional

RETURNS
{success: Boolean, entries: Array[Entry], entry_count: Number, comments: Array[Comment]}

EXAMPLE OUTPUT
{
  "comments": [
    {
      "answer": null,
      "avatar": null,
      "avatar_large": null,
      "blog": "51a84568ddf2b3208abb3667",
      "body": "Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.",
      "created": "2013-05-31T09:10:05+02:00",
      "email": "[email protected]",
      "entry": "51a84624ddf2b3208abb3681",
      "id": "51a84ccdddf2b3211f3ad005",
      "name": "Martin Lundberg",
      "seen": false,
      "url": "http://info.blogg.se",
      "visible": false
    }
  ],
  "entries": [
    {
      "blog": "51a84568ddf2b3208abb3667",
      "body": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua

\r\n
\"\"
\r\n

m, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie sem nulla id libero. Praesent tortor lorem, consectetur sit amet ornare nec, laoreet a tellus. Nam eget varius lorem. Donec posuere semper felis at aliquet. Pellentesque at ultrices elit. Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.

\r\n

Vivamus faucibus mattis porta. Mauris aliquet aliquet ipsum, eu commodo augue vulputate ac. In inpharetra est. Pellentesque posuere, nisl vitae rhoncus vestibulum, nunc est consectetur odio, et fringilla erat arcu a lacus. Duis interdum laoreet dui, sed cursus turpis tincidunt id. Etiam ac nisl est, quis congue diam. Curabitur tincidunt enim a risus sagittis consectetur. Aenean porta interdum tortor, consectetur condimentum turpis consectetur mattis. Phasellus molestie ante ac nisl mollis ac luctus nulla elementum.

", "categories": [ { "name": "Allm\u00e4nt", "permalink": "http://api.blogg.se/category/allmant.html" }, { "name": "API", "permalink": "http://api.blogg.se/category/api.html" } ], "comment_count": 1, "comment_count_unseen": 1, "commentable": true, "created": "2013-05-31T08:41:40+02:00", "draft": false, "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua\r\n\r\nm, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie\u2026", "id": "51a84624ddf2b3208abb3681", "images": [ "51a845eaddf2b321772aa05c" ], "permalink": "http://api.blogg.se/2013/may/bloggse-now-has-an-api.html", "position": { "address": null, "altitude": null, "latitude": 59.297010900000004, "longitude": 18.109455699999998, "precision": 0 }, "publish_date": "2013-05-31T08:41:00+02:00", "tags": [ "api", "demo", "test" ], "thumbnail_url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c_thumb.gif", "title": "Blogg.se now has an API" } ], "entries_count": 1, "success": true }
Unseen comments

GET https://api.publishme.se/1/blogs/<blogid>/unseen_comments

Description
List unseen comments for blog with ID blog_id. You will get two lists, one with
entries and one with comments. It's up to you to check which entry a
comment belongs to.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required
limit Number, limit the response to limit elements. optional
skip Number, skip to item #skip. optional

RETURNS
{success: Boolean, comments: Array[Comment], comments_count: Number, entries: Array[Entry]}

EXAMPLE OUTPUT
{
  "comments": [
    {
      "answer": null,
      "avatar": null,
      "avatar_large": null,
      "blog": "51a84568ddf2b3208abb3667",
      "body": "Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.",
      "created": "2013-05-31T09:10:05+02:00",
      "email": "[email protected]",
      "entry": "51a84624ddf2b3208abb3681",
      "id": "51a84ccdddf2b3211f3ad005",
      "name": "Martin Lundberg",
      "seen": false,
      "url": "http://info.blogg.se",
      "visible": false
    }
  ],
  "comments_count": 1,
  "entries": [
    {
      "blog": "51a84568ddf2b3208abb3667",
      "body": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua

\r\n
\"\"
\r\n

m, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie sem nulla id libero. Praesent tortor lorem, consectetur sit amet ornare nec, laoreet a tellus. Nam eget varius lorem. Donec posuere semper felis at aliquet. Pellentesque at ultrices elit. Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.

\r\n

Vivamus faucibus mattis porta. Mauris aliquet aliquet ipsum, eu commodo augue vulputate ac. In inpharetra est. Pellentesque posuere, nisl vitae rhoncus vestibulum, nunc est consectetur odio, et fringilla erat arcu a lacus. Duis interdum laoreet dui, sed cursus turpis tincidunt id. Etiam ac nisl est, quis congue diam. Curabitur tincidunt enim a risus sagittis consectetur. Aenean porta interdum tortor, consectetur condimentum turpis consectetur mattis. Phasellus molestie ante ac nisl mollis ac luctus nulla elementum.

", "categories": [ { "name": "Allm\u00e4nt", "permalink": "http://api.blogg.se/category/allmant.html" }, { "name": "API", "permalink": "http://api.blogg.se/category/api.html" } ], "comment_count": 1, "comment_count_unseen": 1, "commentable": true, "created": "2013-05-31T08:41:40+02:00", "draft": false, "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua\r\n\r\nm, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie\u2026", "id": "51a84624ddf2b3208abb3681", "images": [ "51a845eaddf2b321772aa05c" ], "permalink": "http://api.blogg.se/2013/may/bloggse-now-has-an-api.html", "position": { "address": null, "altitude": null, "latitude": 59.297010900000004, "longitude": 18.109455699999998, "precision": 0 }, "publish_date": "2013-05-31T08:41:00+02:00", "tags": [ "api", "demo", "test" ], "thumbnail_url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c_thumb.gif", "title": "Blogg.se now has an API" } ], "success": true }
List comments

GET https://api.publishme.se/1/blogs/<blogid>/comments

Description
List comments for blog with ID blog_id. You will get two lists, one with
entries and one with comments. It's up to you to check which entry a
comment belongs to.

URL PARAMETERS
blog_id ID of blog desired, in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required
limit Number, limit the response to limit elements. optional
skip Number, skip to item #skip. optional

RETURNS
{success: Boolean, comments: Array[Comment], comments_count: Number, entries: Array[Entry]}

EXAMPLE OUTPUT
{
  "comments": [
    {
      "answer": null,
      "avatar": null,
      "avatar_large": null,
      "blog": "51a84568ddf2b3208abb3667",
      "body": "Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.",
      "created": "2013-05-31T09:10:05+02:00",
      "email": "[email protected]",
      "entry": "51a84624ddf2b3208abb3681",
      "id": "51a84ccdddf2b3211f3ad005",
      "name": "Martin Lundberg",
      "seen": false,
      "url": "http://info.blogg.se",
      "visible": false
    },
    {
      "answer": {
        "answer": null,
        "avatar": null,
        "avatar_large": null,
        "blog": "51a84568ddf2b3208abb3667",
        "body": "Tack s\u00e5 mycket!",
        "created": "2013-05-31T09:08:39+02:00",
        "email": "[email protected]",
        "entry": "51a8456addf2b3208abb3669",
        "id": "51a84c779606ee464c89a88b",
        "name": "api.blogg.se",
        "seen": false,
        "url": "http://api.blogg.se",
        "visible": true
      },
      "avatar": null,
      "avatar_large": null,
      "blog": "51a84568ddf2b3208abb3667",
      "body": "Lycka till med din nya blogg!",
      "created": "2013-05-31T08:38:34+02:00",
      "email": null,
      "entry": "51a8456addf2b3208abb3669",
      "id": "51a8456addf2b3208abb366b",
      "name": "Blogg.se",
      "seen": true,
      "url": "http://blogg.se",
      "visible": true
    }
  ],
  "comments_count": 2,
  "entries": [
    {
      "blog": "51a84568ddf2b3208abb3667",
      "body": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua

\r\n
\"\"
\r\n

m, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie sem nulla id libero. Praesent tortor lorem, consectetur sit amet ornare nec, laoreet a tellus. Nam eget varius lorem. Donec posuere semper felis at aliquet. Pellentesque at ultrices elit. Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.

\r\n

Vivamus faucibus mattis porta. Mauris aliquet aliquet ipsum, eu commodo augue vulputate ac. In inpharetra est. Pellentesque posuere, nisl vitae rhoncus vestibulum, nunc est consectetur odio, et fringilla erat arcu a lacus. Duis interdum laoreet dui, sed cursus turpis tincidunt id. Etiam ac nisl est, quis congue diam. Curabitur tincidunt enim a risus sagittis consectetur. Aenean porta interdum tortor, consectetur condimentum turpis consectetur mattis. Phasellus molestie ante ac nisl mollis ac luctus nulla elementum.

", "categories": [ { "name": "Allm\u00e4nt", "permalink": "http://api.blogg.se/category/allmant.html" }, { "name": "API", "permalink": "http://api.blogg.se/category/api.html" } ], "comment_count": 1, "comment_count_unseen": 1, "commentable": true, "created": "2013-05-31T08:41:40+02:00", "draft": false, "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua\r\n\r\nm, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie\u2026", "id": "51a84624ddf2b3208abb3681", "images": [ "51a845eaddf2b321772aa05c" ], "permalink": "http://api.blogg.se/2013/may/bloggse-now-has-an-api.html", "position": { "address": null, "altitude": null, "latitude": 59.297010900000004, "longitude": 18.109455699999998, "precision": 0 }, "publish_date": "2013-05-31T08:41:00+02:00", "tags": [ "api", "demo", "test" ], "thumbnail_url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c_thumb.gif", "title": "Blogg.se now has an API" }, { "blog": "51a84568ddf2b3208abb3667", "body": "

Mitt f\u00f6rsta inl\u00e4gg.

", "categories": [ { "name": "Allm\u00e4nt", "permalink": "http://api.blogg.se/category/allmant.html" } ], "comment_count": 1, "comment_count_unseen": 0, "commentable": true, "created": "2013-05-31T08:38:34+02:00", "draft": false, "excerpt": "Mitt f\u00f6rsta inl\u00e4gg.", "id": "51a8456addf2b3208abb3669", "images": [], "permalink": "http://api.blogg.se/2013/may/valkommen-till-min-nya-blogg.html", "position": null, "publish_date": "2013-05-31T08:38:34+02:00", "tags": [], "thumbnail_url": null, "title": "V\u00e4lkommen till min nya blogg!" } ], "success": true }