Notifications API

curl -u username:password https://www.openlearning.com/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 into one application. 

Note: There is currently no https://www.openlearning/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
     }
]
Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 mth agoLast active
  • 20Views
  • 1 Following