Add yourself to meeting - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki
URL:
{serverAddress}/api/meeting/adduser
Method:
POST
Content-type:
application/json
Method for web application:
public static ObjectNode web_addUser(String login, String sid, String meetingId, String accessCode) in controllers.Meetings
Description:
Adds you to meeting
Input:
{
"login": "your login",
"sid": "id of current session",
"meetingid": "ID of meeting, which you want to join",
"accessCode": "access Code, which is needed to join meeting"
}
Note that, meetingid and other parameters are string type.
Output OK:
{
"status": "ok"
"meetingid": id of meeting
"title": "title of meeting",
"topic": "topic of meeting",
"hostname": "John",
"starttime": "2013-07-21 09:35:38.750",
"endtime": null,
"members": 1,
"permissions": "member",
"accessCode": "d73jf8"
}
Note that, meetingid and members are integer value (others parameters are strings).
Output error:
{
"status": "failed",
"reason": "reason of error"
}
Types of reasons:
json exceptedincorrect data- incorrect value inabilityToSendFiles, or other value is incorrect (blank)incorrect sid- incorrect session idincorrect accessCode- incorrect accessCodemeeting finished- you can't join into this meeting, because is already finishedyou are a member- you were a member before this request