Exemples de macros au format HTTP

Exemples de combinaisons de macro HTTP couramment utilisées.

Voir Macros au format HTTP pour obtenir la liste des macros et leurs définitions.

Exemples de macro Format de sortie

<PID_ALIAS>|<DP_UUID>|<TRAITALIAS_LIST; separator=",">

pid_alias|dp_uuid|trait_1,trait_2

<PID_ALIAS>|count:<NUM_USERS>|users:[<USER_LIST:{user|<user.aamUuid>:<user.dpUuid>}; separator=", ">]

"pid_alias|count:2|users:[uuid1:dpuuid1, uuid2:dpuuid2]"

<USER_AGENT>|<IP>|<TIMESTAMP>|<RANDOM>

"Firefox|255.255.255.255|1395758143|42341"

<USER_LIST:{u|<u.userAgent>|<u.ip>|<u.timestamp>|<u.random>}; separator=", ">

"Firefox|255.255.255.255|1395758143|42341"

<DP_UUIDS.1> AND <DP_UUIDS.2>

dpuuid1 AND dpuuid2

users:[<USER_LIST:{user|<user.dpUuids.1> AND <user.dpUuids.2>}; separator=", ">]

users:[dpuuid1 AND dpuuid2]

test_known_string=loremlipsum&segid=<TRAITALIAS_LIST; separator=",">&test_dpuuid_1000=<DP_UUIDS.1000>

test_known_string=loremlipsum&segid=trait_1,trait_2&test_dpuuid_1000=dpuuid_1000

test_dpuuids=<DP_UUIDS.(DPID)>

test_dpuuids=dpuuid2

"<PID_ALIAS>|<DP_UUID>|<TRAITALIAS_LIST; separator=",">|<REMOVED_TRAITALIAS_LIST; separator=",">

pid_alias|dp_uuid|trait_1,trait_2|trait_3,trait_4

{"Users": [<USER_LIST:{user|<OPEN_BRACKET>    "AAM_UUID": "<user.aamUuid>",    "DataPartner_UUID": "<user.dpUuid>",    "Segments": [<user.segments:{seg|<OPEN_BRACKET>"Segment": "<seg.traitAlias>"<CLOSE_BRACKET>}; separator=",">]    "Removed_Segments": [<user.removedSegments:{rseg|<OPEN_BRACKET>"Segment": "<rseg.traitAlias>"<CLOSE_BRACKET>}; separator=",">]    <CLOSE_BRACKET>}; separator=",">]}

{      "Users":[         {            "AAM_UUID":"uuid1",          "DataPartner_UUID":"dpuuid1",          "Segments":[               {                  "Segment":"alias1"             },             {                  "Segment":"alias2"             }          ],          "Removed_Segments":[               {                  "Segment":"alias3"             },             {                  "Segment":"alias4"             }          ]       }    ] }

{"Users": [<USER_LIST:{user|<OPEN_BRACKET>    "AAM_UUID": "<user.aamUuid>",    "DataPartner_UUID": "<user.dpUuid>",    "Segments": [<user.segments:{seg|<OPEN_BRACKET>"Segment": "<seg.traitAlias>","Status": "<seg.status>"<CLOSE_BRACKET>}; separator=",">]      <CLOSE_BRACKET>}; separator=",">]}

{      "Users":[         {            "AAM_UUID":"uuid1",          "DataPartner_UUID":"dpuuid1",          "Segments":[               {                  "Segment":"alias1"       "Status":"1"             },             {                  "Segment":"alias2"                "Status":"0"             }          ]       }    ] }

<PID_ALIAS>|<DP_UUID>|<SEGMENTS:{seg|<seg.traitAlias>}; separator=\",\">|<REMOVED_SEGMENTS:{seg|<seg.traitAlias>}; separator=\",\">

pid_alias|dp_uuid|trait_1,trait_2|trait_3,trait_4

<if(user.segments && user.removedSegments)><COMMA><endif>

Imprime une virgule si les champs segments et removedSegments ne sont pas vides. Cette condition peut être utilisée pour les requêtes de POST lors de la concaténation de listes pour les segments et les segments supprimés.

Sur cette page