Update account

POST https://api.publishme.se/1/account/update

Description
Update settings connected to account.

GET PARAMETERS
access_token String, the user authentication token. required

POST PARAMETERS
first_name String, first name of the user.
last_name String, last name of the user.
sex String, "" (unspecified), "m" (male) or "f" (female).
birth_date String, birth date of the user Example: 1973-05-29.
avatar avatar image attached to the request like in a file upload.

RETURNS
{success: Boolean, account: Account}

EXAMPLE OUTPUT
{
  "account": {
    "avatar": null,
    "avatar_large": null,
    "birth_date": "1970-01-01",
    "default_blog": "51a84568ddf2b3208abb3667",
    "email": "api@blogg.se",
    "first_name": "",
    "id": "51a84568ddf2b3208abb3666",
    "last_name": "",
    "name": " ",
    "number_of_unseen_comments": 1,
    "sex": ""
  },
  "success": true
}
Get account

GET https://api.publishme.se/1/account

Description
Get account object and all blogs for current logged on account.

GET PARAMETERS
access_token String, the user authentication token. required

RETURNS
{success: Boolean, account: Account, blogs: Array[Blog]}

EXAMPLE OUTPUT
{
  "account": {
    "avatar": null,
    "avatar_large": null,
    "birth_date": "1970-01-01",
    "default_blog": "51a84568ddf2b3208abb3667",
    "email": "api@blogg.se",
    "first_name": "",
    "id": "51a84568ddf2b3208abb3666",
    "last_name": "",
    "name": " ",
    "number_of_unseen_comments": 1,
    "sex": ""
  },
  "blogs": [
    {
      "account": "51a84568ddf2b3208abb3666",
      "default_image_width": 600,
      "description": "A demo blog for the API",
      "id": "51a84568ddf2b3208abb3667",
      "moderated": true,
      "number_of_drafts": 1,
      "number_of_unseen_comments": 1,
      "site_id": 4171920,
      "title": "api.blogg.se",
      "url": "http://api.blogg.se/"
    }
  ],
  "success": true
}