Xpenser API: Users

Create

URL: /api/v1.0/user/

Method: POST

Parameters:

Sample Usage:

curl -u user:password -d "email=test@testing.com&password=mypassword" "http://xpenser.com/api/v1.0/user/"

Response:

Success:

{
    "status": 200,
    "username": "test@testing.com",
    "message": ""
}

Error condition, user already exists:

{
    "status": 400,
    "username": "test@testing.com",
    "message": "duplicate"
}

Error condition, requested email address exists as a contact in another account:

{
    "status": 400,
    "username": "test@testing.com",
    "message": "is_contact"
}