meta data for this page
Get JESS Account Info
Use GET /account
to retrieve the linked JESS account's information.
Synopsis
- Method: GET
- Cookie: “session_token=<existing JWT>”
- Header: none
- Body: none
- Success: Account info object
- Error: HTTP 401 - Unauthorized
Return object
A successful GET /account
transaction returns an object containing the information of the linked JESS account.
{ "ok": true, "status": "TestUser account available", "data": { "address": "NA", "permissions": "", "id": 1, "surname": "User", "firstname": "Test", "overdraft": 100.0, "userGroup": "admin", "last_Access": 1529625679327, "registered": 1529625679327, "telephone": "null", "suspended": false, "username": "--------", "email": "yi@jeplus.org", "cpuhour": 91.33972222222222 } }
Example using curl://
Send the GET /account
command using curl:
curl -b cookies https://api.ensims.com/jess_web/api/account
On success, the user's JESS account info will be returned in a JSON object. If the existing JWT is invalid, an HTTP 401 Unauthorized code will be returned.
Example using Python Requests
Make sure Requests is correctly installed in your Python environment, and run the following lines:
import requests # Existing cookies are expected to be stored in the variable 'cookies' r = requests.get('https://api.ensims.com/jess_web/api/account', cookies=cookies) # Show returned object r.json()