New meeting - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki

URL:

{serverAddress}/api/meeting/new

Method:

POST

Content-type:

application/json

Method for web application:

public static ObjectNode web_createNew(String login, String sid, String title, String topic, String abilityToSendFiles) in controllers.Meetings

Description:

Creates new meeting at server.

Input:

{
  "login": "your login",
  "sid": "id of current session",
  "title": "title of meeting",
  "topic": "current topic of meeting",
  "abilityToSendFiles": "true or false. It depends, if you want to allow sending files by members of meeting"
}

Output OK:

{
  "status": "ok",
  "meetingid": "id of your meeting"
  "title": "title of meeting a1",
  "topic": "topic of meeting a1",
  "hostname": "John",
  "starttime": "2013-07-21 09:35:38.750",
  "endtime": null,
  "members": 1,
  "permissions": "host",
  "accessCode": "d73jf8"
}

Output error:

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

Types of reasons:

  • json excepted
  • incorrect data - incorrect value in abilityToSendFiles, or other value is incorrect
  • incorrect sid - incorrect session id