Add a custom field (apiAddSubscriberField)
Mit Hilfe dieser Funktion können Sie ein neues Personalisierungsfeld anlegen.
Request
| Name | Type | Example | Required | Comment |
|---|---|---|---|---|
| customFieldName | String | Surname | 1 Text, 2 Number, 3 Text with linebreak, 4 Boolean | |
| customFieldType | Integer | 1 | 1 Text, 2 Number, 3 Text with linebreak, 4 Boolean |
Error Response
| Code | Interpretation |
|---|---|
| 404 | Es wurde keine gültiger Custom Name oder Custom Type übergeben. |
PHP5 Beispiel
try{
$customField = array('customFieldName' => 'Surname', 'customFieldType' => 1);
$response=$client->apiAddSubscriberField($customField);
}
catch (SoapFault $exception) {
echo ($exception->getMessage());
}