Get list of yours meetings - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki

URL:

{serverAddress}/api/meeting/list/$login/$sid

Method:

GET

Content-type:

?

Method for web application:

public static ObjectNode web_getList(String login, String sid) in controllers.Meetings

Description:

Gets all meetings which you have joined. Meeting are sorted by start date (The newest are on top). You'll get information about title, topic, name of host, timestamp of start and possibly stop meeting, number of members, your permissions (host/member who can upload files/member who can't), and access Code (which is needed to join this meeting by other person).

Input:

$login = your login
$sid = id of current session

Output OK:

{
   "status": "ok",
   "meetings":[
      {
         "meetingid": meeting ID a1,
         "title": "title of meeting a1",
         "topic": "topic of meeting a1",
         "hostname": "John",
         "starttime": "2013-07-21 09:35:38.750",
         "endtime": null,
         "members": 12,
         "permissions": "host",
         "accessCode": "d73jf8"
      },
      {
         "meetingid": meeting ID a2,
         "title": "title of meeting a2",
         "topic": "topic of meeting a2",
         "hostname": "Mark",
         "starttime": "2013-05-24 19:11:12.353",
         "endtime": "2013-05-25 20:22:12.514",
         "members": 11,
         "permissions": "memberUpload",
         "accessCode": "dkk4iu"
      },
      ...
      {
         "meetingid": meeting ID an,
         "title": "title of meeting an",
         "topic": "topic of meeting an",
         "hostname": "Anna",
         "starttime": "2012-05-24 19:11:12.353",
         "endtime": "2012-05-25 20:22:12.514",
         "members": 3,
         "permissions": "member",
         "accessCode": "3jd7r8"
      },
   ]
}

Note that, meetingid and members are integer value (others parameters are strings).

Parameter permissions can be equal to: host (you're a host of this meeting), memberUpload (you're a member of this meeting and you CAN upload files), or member (you're a member of this meeting and you CAN'T upload files)

Output error:

{
  "status": "failed",
  "reason": "reason of error"
}

Types of reasons:

  • incorrect data - some value is incorrect (blank)
  • incorrect sid - incorrect session id