HTTP 형식 매크로 예제 http-format-macro-examples

일반적으로 사용되는 HTTP 매크로 조합의 예입니다.

매크로 목록 및 해당 정의에 대해서는 HTTP 형식 매크로를 참조하십시오.

매크로 예제
출력 형식
<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>
segmentsremovedSegments 필드가 비어 있지 않으면 쉼표를 인쇄합니다. 이 조건부 값은 세그먼트 및 제거된 세그먼트에 대한 목록을 연결할 때 POST 요청에 사용할 수 있습니다.
recommendation-more-help
3d9f8cff-f6d8-4dcd-966c-cf2ea03db934