v7
Campaign Classic v7에만 적용

비즈니스 지향 API business-oriented-apis

비즈니스 API는 각 오브젝트 유형에 따라 다릅니다. 이 변수는 다음에 영향을 줍니다.

이 섹션에서는 "Subscribe", "Unsubscribe" 및 "SubmitDelivery" 서비스 사용에 대해 자세히 설명합니다.

IMPORTANT
Campaign JSAPI 설명서 에는 SOAP 호출 및 Adobe Campaign에서의 Javascript 사용에 대한 추가 정보와 애플리케이션에 사용되는 모든 메서드 및 함수에 대한 전체 참조가 포함되어 있습니다.

구독(nms:subscription) subscribe--nms-subscription-

이 서비스를 사용하면 수신자를 정보 서비스에 구독하고 수신자 프로필을 업데이트할 수 있습니다.

서비스를 호출하려면 다음 매개 변수가 필요합니다.

  • 인증,
  • 구독 서비스의 내부 이름,
  • 수신자 정보가 포함된 XML 문서("nms:recipient" 스키마의)
  • 수신자 생성을 위한 부울이 아직 없는 경우 입니다.

"nms:subscription" 스키마의 "subscribe" 메서드에 대한 설명:

<method name="Subscribe" static="true">
  <parameters>
     <param name="serviceName" type="string"  desc="List of information service names (comma separated)"/>
     <param name="recipient" type="DOMElement" desc="Recipient"/>
     <param name="create" type="Boolean" desc="Create recipient if it does not exist"/>
   </parameters>
</method>

조정 키의 정의는 _를 통해 입력해야 합니다.key 속성 <recipient> xml 문서의 요소입니다. 이 속성의 콘텐츠는 쉼표로 구분된 XPath 목록입니다.

이 호출은 오류를 제외하고 데이터를 반환하지 않습니다.

예제 examples

전자 메일 주소에 수신자 조정 키가 있는 구독: 입력 XML 문서는 전자 메일 주소와 이 필드의 키 정의를 참조해야 합니다.

<recipient _key="email" email= "john.doe@adobe.com"/>

수신자와 구독을 업데이트하는 중입니다.

<recipient _key="email, [folder-id]" email= "john.doe@adobe.com" folder-id="1305" firstName="John" lastName="Doe"/>

SOAP 메시지의 예 example-of-soap-messages

  • 쿼리:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <m:Subscribe xmlns:m='urn:nms:subscription' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
          <sessiontoken xsi:type='xsd:string'/>
          <service xsi:type='xsd:string'>SVC1</service>
          <content xsi:type='' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
            <recipient _key="@email" email= "john.doe@adobe.com/>
          </content>
          <create xsi:type='xsd:boolean'>true</create>
        </m:Subscribe>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
  • 응답:

    code language-none
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
      <SOAP-ENV:Body>
        <m:SubscribeResponse xmlns:m='urn:nms:subscription' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
        </m:SubscribeResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

구독 취소(nms:subscription) unsubscribe--nms-subscription-

이 서비스를 사용하면 정보 서비스에서 수신자의 구독을 취소하고 수신자 프로필을 업데이트할 수 있습니다.

서비스를 호출하려면 다음 매개 변수가 필요합니다.

  • 인증,
  • 구독을 취소할 서비스의 내부 이름,
  • 수신자 정보가 포함된 XML 문서("nms:recipient" 스키마의)

"nms:subscription" 스키마의 "Unsubscribe" 메서드에 대한 설명:

<method name="Unsubscribe" static="true">
  <parameters>
    <param name="serviceName" type="string" desc="List of information service names (comma separated)"/>
    <param name="recipient" type="DOMElement"  desc="Recipient"/>
  </parameters>
</method>

조정 키의 정의는 의 _key 특성을 통해 입력해야 합니다. <recipient> xml 문서의 요소입니다. 이 속성의 콘텐츠는 쉼표로 구분된 XPath 목록입니다.

수신자가 데이터베이스에 없거나 관련 정보 서비스에 가입하지 않은 경우 서비스는 아무 작업도 수행하지 않으며 오류를 생성하지 않습니다.

NOTE
서비스 이름이 매개 변수로 지정되지 않은 경우 recipient가 자동으로 차단 목록에 지정됩니다(@blackList="1").

이 호출은 오류를 제외하고 데이터를 반환하지 않습니다.

SOAP 메시지의 예 example-of-soap-messages-1

쿼리:

<?xml version='1.0' encoding='ISO-8859-1'?>
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
  <SOAP-ENV:Body>
    <m:Unsubscribe xmlns:m='urn:nms:subscription' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <sessiontoken xsi:type='xsd:string'/>
    <service xsi:type='xsd:string'>SVC1</service>
    <content xsi:type='' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
      <recipient _key="@email" email= "john.doe@adobe.com/>
    </content>
  </m:Unsubscribe>
</SOAP-ENV:Body>

응답:

<?xml version='1.0' encoding='ISO-8859-1'?>
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='http://xml.apache.org/xml-soap' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
  <SOAP-ENV:Body>
    <m:UnsubscribeResponse xmlns:m='urn:nms:subscription' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    </m:UnsubscribeResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

SubmitDelivery (nms:delivery) submitdelivery--nms-delivery-

이 서비스를 사용하면 게재 작업을 만들고 제출할 수 있습니다.

서비스를 호출하려면 다음 매개 변수가 필요합니다.

  • 인증,
  • 게재 템플릿의 내부 이름,
  • 추가 게재 데이터가 포함된 선택적 XML 문서입니다.

이 API는 성능 문제가 발생할 수 있으므로 볼륨에서 호출하면 안 됩니다.

스키마의 메서드에 대한 설명:

<method name="SubmitDelivery" static="true">
  <parameters>
    <param name="scenarioName" type="string" inout="in" desc="Internal name of the delivery template"/>
    <param name="content" type="DOMElement"  inout="in" desc="XML content of the delivery template" />
  </parameters>
</method>

게재 템플릿은 Adobe Campaign 클라이언트 콘솔에서 만들어야 합니다. 여기에는 모든 게재(보낸 사람 주소 또는 메시지의 유효 기간)에 공통되는 매개 변수가 포함되어 있습니다.

입력 XML 문서는 "nms:delivery" 스키마의 구조를 따르는 게재 템플릿 조각입니다. 게재 템플릿에서 정적으로 정의할 수 없는 모든 추가 데이터(예: 타겟팅할 수신자 목록)가 포함됩니다.

이 호출은 오류를 제외하고 데이터를 반환하지 않습니다.

XML 문서 예 xml-document-example

이 예제는 외부 데이터 소스(이 경우 파일)의 사용자 지정 게재 템플릿을 기반으로 합니다. 구성은 게재 템플릿에 완벽하게 설명되므로 호출이 발생할 때 전송되는 모든 항목은 의 파일 콘텐츠입니다. <externalsource> 요소를 생성하지 않습니다.

<delivery>
  <targets fromExternalSource="true">
    <externalSource>
      MsgId|ClientId|Title|Name|FirstName| Mobile|Email| Market_segment|Product_affinity1 |Product_affinity2|Product_affinity3| Product_affinity4| Support_Number|Amount|Threshold1|000001234|M.| Doe|John|0650201020| john.doe@adobe.com
|1| A1|A2|A3|A4|E12|120000|100000
    </externalSource>
  </target>
</delivery>

게재 템플릿이 없는 경우 다음 샘플을 사용할 수 있습니다.

<delivery>
<targets fromExternalSource="true" targetMode="1" noReconciliation="true" addressField="Email" >
    <fileFormat active="true">
      <source format="text" type="text">
        <dataSourceConfig >
          <dataSourceColumn label="Email" name="Email" type="string"/>
        </dataSourceConfig>
      </source>
      <destination type="xtkDataStore"/>
    </fileFormat>
    <externalSource><![CDATA[not-a-repicipient@domain.com]]></externalSource>
  </targets>
</delivery>
recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1