API: Get all notifications - ninetwozero/BF3-Battlelog GitHub Wiki

Url

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

Headers

X-Requested-With => XMLHttpRequest
X-AjaxNavigation => 1

Response

{
  "context": {
    "_href": "/bf3/notification/", 
    "notification": null, 
    "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"
      }
    ], 
    "platoons": [], 
    "searchPersonas": [], 
    "searchUsers": [], 
    "titleSection": "Battlefield 3", 
    "userMessageBox": null
  }, 
  "globalContext": {
    "actionName": "index", 
    "activeMenu": "", 
    "componentName": "notification", 
    "currentUrl": "|bf3|notification|", 
    "hasWriteBan": false, 
    "isAjaxFetch": false, 
    "isAjaxNavigation": true, 
    "isSecure": false, 
    "mutedSounds": 0, 
    "pushConnections": [
      {
        "address": "beaconpush-12.battlelog.battlefield.com", 
        "apiKey": "planet", 
        "channels": [
          "@2832658801548551060"
        ], 
        "channelsWithAuth": [
          "1333924083;8fdb0425cdfe6ddf1a43cadb837328f8efa61794@2832658801548551060"
        ], 
        "log": false, 
        "nodeNumber": 6, 
        "sslAddress": "10.99.139.119:6054", 
        "sslEnabled": false, 
        "sslWsAddress": "10.99.139.119:6054", 
        "token": "1333924083;3185bf3865159a339f4ddcb811e6fe9a9dc0e6bf", 
        "user": "2832658801548551060", 
        "wsAddress": "beaconpush-12.battlelog.battlefield.com"
      }
    ], 
    "pushPorts": [
      80, 
      "secure-443"
    ], 
    "pushServers": [
      "beaconpush-4.battlelog.battlefield.com", 
      "beaconpush-14.battlelog.battlefield.com", 
      "beaconpush-1.battlelog.battlefield.com", 
      "beaconpush-13.battlelog.battlefield.com", 
      "beaconpush-3.battlelog.battlefield.com", 
      "beaconpush-11.battlelog.battlefield.com", 
      "beaconpush-12.battlelog.battlefield.com", 
      "beaconpush-2.battlelog.battlefield.com"
    ], 
    "realm": {
      "game": 2, 
      "lang": 1, 
      "section": 2
    }, 
    "systemUtcTime": 1333880883, 
    "useExperimentalPush": true, 
    "writeBanUntil": 0
  }, 
  "template": "notification.index"
}