Make a request ยป

AccountService.GetDemographicData

Retrieve demographic data fields for an account. If optional values have been defined for a certain demographic data field, these will also be returned. Will also return true/false for Visible which means if a demographic data field should be visible nor not when subscribers open the "Update My Subscription" page generated when using ##UpdateMySubscription## in an APSIS Pro email. (direct) See code examples


URL Parameters

Http verb: Get
URI: Full url: http://se.api.anpasia.com/accounts/v2/demographics
URL parameters:
Not used

Body parameters

Body parameters
Not used

Response

Body parameters
returns
Returns a list of demographic data items

Code Int32 The response Code.
Message String The response Message.
Result
The response Result.

Demographics List
<DemographicDataCollectionItem>
Returns a list of demographicdata items
Body Example


{
    "Code": 1,
    "Message": "OK",
    "Result": {
        "Demographics": [
            {
                "Alternatives": [
                    "male",
                    "female"
                ],
                "Index": 0,
                "Key": "gender",
                "Visible": true
            }
        ]
    }
}
  <Code>1</Code>
  <Message>OK</Message>
  <Result>
    <Demographics>
      <DemographicDataCollectionItem>
        <Alternatives xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <a:string>male</a:string>
          <a:string>female</a:string>
        </Alternatives>
        <Index>0</Index>
        <Key>gender</Key>
        <Visible>true</Visible>
      </DemographicDataCollectionItem>
    </Demographics>
  </Result>
</Response>
                

Help

Code examples


curl -i -X GET
-H 'Content-type: application/json'
-H 'Accept: application/json' 
-H 'Authorization: basic $api_key_64baseformat'
url http://se.api.anpasia.com/accounts/v2/demographics