Users
Manage access to your account by creating, updating, or deleting users. The following user methods are available:
Users List
GET https://secure.ledgerble.com/api/1.0/users
Returns a list of users in the following format:
{
"users":
[
{
"id": 32,
"url": "https://secure.ledgerble.com/api/1.0/users/32",
"email": "demo@domain.com",
"first_name": "Roger",
"last_name": "Sterling",
"active": true,
"last_login": {
"date": "2010-02-01 10:01:34",
"ip": "127.0.0.1"
}
}
]
}
Get User
GET https://secure.ledgerble.com/api/1.0/users/{USER_ID}
Returns a single user in the following format:
{
"user": {
"id": 32,
"email": "demo@domain.com",
"first_name": "Roger",
"last_name": "Sterling",
"active": true,
"last_login": {
"date": "2010-02-01 10:01:34",
"ip": "127.0.0.1"
}
}
}
New User
POST https://secure.ledgerble.com/api/1.0/users
Creates a new user. The following options are available:
| Variable | Required? | Description |
|---|---|---|
| Yes | The user's email address. Will also be used as their username. | |
| password | Yes | The user's password. Should be at least 6 characters. |
| first_name | Yes | The user's first name. |
| last_name | Yes | The user's last name. |
Edit User
POST https://secure.ledgerble.com/api/1.0/users/{USER_ID}/edit
Updates the existing user with the {USER_ID} provided. The options available are the same as those for creating.
Delete User
POST https://secure.ledgerble.com/api/1.0/users/{USER_ID}/delete
Deletes the user with the {USER_ID} provided.
