User account resource

Get user details

Request:

GET /account/user

Response

{
  "user": {
    "sex": "m",
    "first_name": "John",
    "last_name": "Doe",
    "country": "642",
    "phone_number": "",
    "mobile_number": "0000000000",
    "state": "confirmed"
  }
}

Get package details

Get details about the current active package of the user.

Request:

GET /account/package

Response

{
  "package": {
    "name": "free",
    "state": "active",
    "from": "2012-01-30",
    "to": "2012-12-30",
    "credits": 6000,
    "interval": "month",
    "price": 0,
    "currency": "EUR",
    "custom_fields": 10,
    "emails_sent": 495
  }
}

Get SMTP details

The SMTP user and password are also used for API Auth.

Request:

GET /account/smtp

Response

{
  "smtp": {
    "hostname": "in.sendmachine.com",
    "port": "25",
    "username": "username",
    "password": "password",
    "state": "active"
  }
}

Get user rating

Request:

GET /account/rating

Response

{
        "score": 100
}

Table Of Contents