EMI.SESSION.INFO
Info method for the given Session ID will return information about the session in question.
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| session | JSON String | yes | Session ID |
Response
| Name | Type | Description |
|---|---|---|
| info | JSON String | Information about the current session. |
Error Codes
| Reference | Description |
|---|---|
| EOK | No errors (contains warnings) |
| EGENERAL | Some other error |
| ESESSION | Session with the given ID is not found |
Examples
Request to EMI-RPC Server:
{
"EMI-RPC": "1.0",
"id": 1,
"method": "emi.session.info",
"params": {"session": "some_session_id" }
}
Response from EMI-RPC Server:
{
"EMI-RPC": "1.0",
"id": 2,
"result":{ "info" : "Current User: admin, Session Started: 2009-08-12
09:12:53" }
}
