API: Checking for new notifications - ninetwozero/BF3-Battlelog GitHub Wiki

Url

http://battlelog.battlefield.com/bf3/notification/loadNotifications/ (Constants.URL_NOTIFICATIONS_TOP5)

Headers

X-Requested-With => XMLHttpRequest

Response

{
  "data": {
    "notifications": [
      {
        "feedItemId": "2832659844777322004", 
        "feedItemType": 6, 
        "section": 0, 
        "timestamp": 1333618088, 
        "type": "feedcomment", 
        "userId": "2832665149492055179", 
        "username": "EXSO_Craigcon"
      }, 
      {
        "section": 0, 
        "timestamp": 1333617561, 
        "type": "wallpostcreated", 
        "userId": "2832659789404407626", 
        "username": "Eddy_J1"
      }, 
      {
        "feedItemId": "2832659844566330388", 
        "feedItemType": 2, 
        "section": 0, 
        "timestamp": 1333206957, 
        "type": "feedlike", 
        "userId": "2832659368491304884", 
        "username": "666bodybag666"
      }, 
      {
        "section": 0, 
        "timestamp": 1332875370, 
        "type": "wallpostcreated", 
        "userId": "2832659368496849329", 
        "username": "MadmartUK"
      }, 
      {
        "feedItemId": "2832659844446068244", 
        "feedItemType": 2, 
        "section": 0, 
        "timestamp": 1332850199, 
        "type": "feedlike", 
        "userId": "2832659789404407626", 
        "username": "Eddy_J1"
      }
    ], 
    "numUnread": 0, 
    "platoons": []
  }, 
  "message": "", 
  "type": "success"
}