Get personal data - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki
URL:
{serverAddress}/api/account/getdata/$login/$sid
Method:
GET
Content-type:
?
Method for web application:
public static ObjectNode web_getData(String login, String sid)
in controllers.Accounts
Description:
Gets personal data of user (name and e-mail).
Input:
$login = your login
$sid = id of current session
Output OK:
{
"status": "ok",
"name": "your name",
"email": "your e-mail"
}
Output error:
{
"status": "failed",
"reason": "reason of error"
}
Types of reasons:
incorrect data
incorrect sid
- incorrect session id