Get user mailing settings

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/mail/settings/get

HTTP Method: POST

The following is an description request Json body:

lang - Display language
api_version - API version (default equal 1)
ga_clientId - Google Analytics ID
token - Authentication token

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1674515317,
    "ga_clientId": "gaclientid",
    "token": "token"
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
mail_settings - Mail settings list
    Empty - 
    [
        is_active - Mailing setting is active
        mail_type_translate - Mail setting translated type code
        mail_type - Mail setting type code
    ]

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "mail_settings": [
        {
            "IsActive": true,
            "MailTypeCode": "string",
            "MailTypeTranslate": "string"
        },
        {
            "IsActive": true,
            "MailTypeCode": "string",
            "MailTypeTranslate": "string"
        }
    ]
}

The following is an example response Xml body:

<result xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <error>
    <code>0</code>
    <message>string</message>
  </error>
  <mail_settings xmlns:a="http://schemas.datacontract.org/2004/07/XMLGen.Classes">
    <a:MailSetting>
      <a:IsActive>true</a:IsActive>
      <a:MailTypeCode>string</a:MailTypeCode>
      <a:MailTypeTranslate>string</a:MailTypeTranslate>
    </a:MailSetting>
    <a:MailSetting>
      <a:IsActive>true</a:IsActive>
      <a:MailTypeCode>string</a:MailTypeCode>
      <a:MailTypeTranslate>string</a:MailTypeTranslate>
    </a:MailSetting>
  </mail_settings>
</result>