Skip to content

(Core API) diary POST

Thomas Muldowney edited this page Apr 14, 2011 · 2 revisions

Add a message to the current days diary. The diary will add the current timestamp to the posts.

Method

POST

URI

This is a service method and must have the sending service id before the method.

URI Example

/9fdfb7e5c6551dc45300aeb0d21fdff4/diary

This would post to the diary from service 9fdfb7e5c6551dc45300aeb0d21fdff4

POST Content-Type

application/x-www-form-urlencoded

Arguments

  • level (optional): An urgency level, for display purposes, which is a number in the range of 0-x. When left out it defaults to 0.
  • message: The message to add to the diary

Arguments Example

level=0&message=Test+message+from+something

Result Content-Type

application/json

Result

  • 200: The JSON of the added diary entry object

Result Example

{
    level:0,
    message:"Test message from something",
    "timestamp":"2011-03-25T06:35:46.202Z"
}
Clone this wiki locally