curl -u username:password http://thaioptometrists.com/?ver=api/notifications/unread?group=false

GET parameters:

  • group (default: false) this determines if similar notifications are grouped. If group is set to true, multiple people commenting on the same page will be grouped in to one application.

Note: There is currently no http://thaioptometrists.com/?ver=api/notifications/read but it may be added in the future.

Example Response:

 

[
    {
        "displayMessage": "<b>Test User</b> tagged you in a comment on <b>u/test.user</b>",
        "notificationLink": "/notifications/go/?nids=000000000000000000000000&redir=%2Fu%2Ftest.user%23comment-000000000000000000000000",
        "standardAvatar": "https://openlearning-cdn.s3.amazonaws.com/test.user-avatar-48-ts1234567890.jpg",
        "timeHuman": "07 May 2012, 14:54:57",
        "timeUNIX": 1336366497
    },
    {
        "displayMessage": "<b>Test User</b> commented on <b>Home</b> in <b>COMP00000</b>",
        "notificationLink": "/notifications/go/?nids=000000000000000000000000&redir=%2Fcourses%2FCOMP00000%23comment-000000000000000000000000",
        "standardAvatar": "https://openlearning-cdn.s3.amazonaws.com/test.user-avatar-48-ts1234567890.jpg",
        "timeHuman": "07 May 2012, 14:54:45",
        "timeUNIX": 1336366485
    },
    {
        "displayMessage": "<b>Test User</b> commented on <b>Home</b> in <b>COMP00000</b>",
        "notificationLink": "/notifications/go/?nids=000000000000000000000000&redir=%2Fcourses%2FCOMP00000%23comment-000000000000000000000000",
        "standardAvatar": "https://openlearning-cdn.s3.amazonaws.com/test.user-avatar-48-ts1234567890.jpg",
        "timeHuman": "07 May 2012, 14:54:40",
        "timeUNIX": 1336366480
    }
]

Comments