예제 2: Adobe Campaign to AEM

AEM은 siteadmin 탐색기 보기의 어느 위치에서나 사용 가능한 개체를 검색할 수 있는 기본 API를 제공합니다.

chlimage1-17

탐색기의 각 노드에 대해 연결된 API가 있습니다. 예를 들어 노드의 경우:

API:

URL .1.json​의 끝은 가져오려는 하위 수준의 수에 따라 .2.json, .3.json(으)로 바꿀 수 있습니다. 모두 키워드를 얻으려면 무한​을(를) 사용할 수 있습니다.

API를 사용하려면 기본적으로 AEM에서 기본 인증을 사용합니다.

이름이 amcIntegration.js​인 JS 라이브러리는 여러 다른 라이브러리 간에 해당 논리를 구현하는 6.1.1(빌드 8624 이상)에서 사용할 수 있습니다.

AEM API 호출

loadLibrary("nms:amcIntegration.js");

var cmsAccountId = sqlGetInt("select iExtAccountId from NmsExtAccount where sName=$(sz)","aemInstance")
var cmsAccount = nms.extAccount.load(String(cmsAccountId));
var cmsServer = cmsAccount.server;

var request = new HttpClientRequest(cmsServer+"/content/campaigns/geometrixx.infinity.json")
aemAddBasicAuthentication(cmsAccount, request);
request.method = "GET"
request.header["Content-Type"] = "application/json; charset=UTF-8";
request.execute();
var response = request.response;
자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.