generated from AdobeDocs/dev-site-documentation-template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from sbenedicadb/main
-update outdated api reference section for messaging and optimize
- Loading branch information
Showing
21 changed files
with
1,024 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/pages/edge/adobe-journey-optimizer/code-based/api-reference.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Code-based Experiences - API Reference | ||
description: This document lists the public APIs available in the Messaging extension for implementing code-based experiences. | ||
keywords: | ||
- Adobe Journey Optimizer | ||
- API reference | ||
- Messaging | ||
- Code-based Experiences | ||
--- | ||
|
||
import Tabs from './tabs/api-reference.md' | ||
|
||
# Code-based Experiences - API reference | ||
|
||
This document lists the public APIs available in the Messaging extension for implementing code-based experiences. | ||
|
||
## getPropositionsForSurfaces | ||
|
||
The `getPropositionsForSurfaces` API retrieves the previously fetched propositions from the SDK's in-memory propositions cache for the provided surfaces. The completion handler is invoked with the decision propositions corresponding to the given surfaces or `AEPError`, if it occurs. | ||
|
||
If a requested surface was not previously cached prior to calling `getPropositionsForSurfaces` (using the `updatePropositionsForSurfaces` API), no propositions will be returned for that surface. | ||
|
||
<TabsBlock orientation="horizontal" slots="heading, content" repeat="2"/> | ||
|
||
Android | ||
|
||
<Tabs query="platform=android&api=get-propositions-for-surfaces"/> | ||
|
||
iOS | ||
|
||
<Tabs query="platform=ios&api=get-propositions-for-surfaces"/> | ||
|
||
## updatePropositionsForSurfaces | ||
|
||
The `updatePropositionsForSurfaces` API dispatches an event for the Edge network extension to fetch personalization decisions from the AJO campaigns for the provided surfaces array. The returned decision propositions are cached in-memory by the Messaging extension. | ||
|
||
To retrieve previously cached decision propositions, use `getPropositionsForSurfaces` API. | ||
|
||
<TabsBlock orientation="horizontal" slots="heading, content" repeat="2"/> | ||
|
||
Android | ||
|
||
<Tabs query="platform=android&api=update-propositions-for-surfaces"/> | ||
|
||
iOS | ||
|
||
<Tabs query="platform=ios&api=update-propositions-for-surfaces"/> |
23 changes: 23 additions & 0 deletions
23
src/pages/edge/adobe-journey-optimizer/code-based/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Code-based Experiences | ||
description: This document guides you to integrating code-based experiences in your application. | ||
keywords: | ||
- Adobe Journey Optimizer | ||
- Guide | ||
- Code-based experiences | ||
--- | ||
|
||
# Code-based Experiences | ||
|
||
This document guides you to integrating code-based experiences in your application. | ||
|
||
## API reference | ||
|
||
* [Code-based Experiences APIs](./api-reference.md) | ||
|
||
## Public Classes and Enums | ||
|
||
* [Class - Proposition](../public-classes/proposition.md) | ||
* [Class - PropositionItem](../public-classes/proposition-item.md) | ||
* [Enum - MessagingEdgeEventType](../public-classes/messaging-edge-event-type.md) | ||
* [Class - Surface](../public-classes/surface.md) |
Oops, something went wrong.