ccchh / angel-news-hub

Newshub for chaos-angels. Plan is to announce upcoming shifts, meetings and other news trough a socket.io based service. Messages will be pushed to browsers and possibly native Android and iOS apps.
GNU General Public License v2.0
14 stars 3 forks source link

get shifts from angel system #5

Closed zeidlos closed 10 years ago

zeidlos commented 10 years ago

Need to get some sample JSON from @msquare. Please update. :)

zeidlos commented 10 years ago

Sample JSON:

[
  {
    "SID": "10",
    "start": "1386867600",
    "end": "1386874800",
    "RID": "1",
    "name": "Testschichten",
    "URL": null,
    "PSID": null,
    "room_name": "Testraum",
    "has_special_needs": "1",
    "angeltypes": [
      {
        "count": "2",
        "id": "8",
        "restricted": "0",
        "confirm_user_id": null,
        "name": "Testengeltyp",
        "user_id": "1",
        "taken": 1
      }
    ]
  },
  {
    "SID": "11",
    "start": "1386874800",
    "end": "1386882000",
    "RID": "1",
    "name": "Testschichten",
    "URL": null,
    "PSID": null,
    "room_name": "Testraum",
    "has_special_needs": "1",
    "angeltypes": [
      {
        "count": "2",
        "id": "8",
        "restricted": "0",
        "confirm_user_id": null,
        "name": "Testengeltyp",
        "user_id": "1",
        "taken": 2
      }
    ]
  },
  {
    "SID": "12",
    "start": "1386882000",
    "end": "1386889200",
    "RID": "1",
    "name": "Testschichten",
    "URL": null,
    "PSID": null,
    "room_name": "Testraum",
    "has_special_needs": "1",
    "angeltypes": [
      {
        "count": "2",
        "id": "8",
        "restricted": "0",
        "confirm_user_id": null,
        "name": "Testengeltyp",
        "user_id": "1",
        "taken": 0
      }
    ]
  }
]