Code Monkey home page Code Monkey logo

target-java-sdk-samples's Introduction

Adobe Target Java SDK Samples

This repository contains Spring Boot based samples for Target Java SDK.

Initiating Client

The TargetClient is instantiated as a Spring bean in ClientSampleApplication class as follows:

@Bean
TargetClient marketingCloudClient() {
    ClientConfig clientConfig = ClientConfig.builder()
            .client("emeaprod4")
            .organizationId("0DD934B85278256B0A490D44@AdobeOrg")
            .build();

    return TargetClient.create(clientConfig);
}

Samples

The samples are divided into 3 sub-sections. All samples have java-docs provided to help explain what each API does.

ProductController: This example demonstrates live offers being applied to product listing page and product view page.

TargetController This example demonstrates different kind of target integrations for eg. Target-Only, Target-ECID, Target-ECID-CustomerId, Target-Analytics etc. It also demos how manage sessions using cookies and how to make asynchronous requests. All of this is demonstrated keeping browser as end client in mind. All the offers are set in serverState variable which are eventually applied by at.js in browser. The web pages displays cookie and serverState values in html for debugging purposes.

TargetRestController This example contains minimal samples to demonstrate target java backend as a rest service. This can serve various clients like: node.js serving front-end, mobile and IOT devices etc.

Development

Check out our Contribution guidelines as well as Code of Conduct prior to contributing to Target Java SDK Samples.

target-java-sdk-samples's People

Contributors

anshchauhan avatar filmaj avatar shandilya3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.