Post a note

evanp edited this page Dec 31, 2012 · 5 revisions

To create a plain-text note, such as a status update, a blog post, or a Tweet, POST an activity to the user's feed (/api/user/fred/feed) like so:

{
    "verb": "post"
    "object": {
        "objectType": "note",
        "content": "Hello, World!"
    }
}

The content can be of any length. It can include HTML5.

{
    "verb": "post"
    "object": {
        "objectType": "note",
        "content": "<b>Hello</b>, World!"
    }
}

"Dangerous" parts of the HTML will be scrubbed. This includes any JavaScript.

{
    "verb": "post"
    "object": {
        "objectType": "note",
        "content": "Hello, World! <script>alert('gotcha!')</script>"
    }
}