Edit in GitHubLog an issue

Use the Analytics 2.0 APIs with Java

  1. Create the certificate and private key using openssl

    Copied to your clipboard
    $ openssl req -nodes -text -x509 -newkey rsa:2048 -keyout secret.pem -out certificate.pem -days 356
  2. Upload the certificate.pem in the Adobe Developer Console > Your Integration > Public keys

  3. convert private key to DER format

    Copied to your clipboard
    $ openssl pkcs8 -topk8 -inform PEM -outform DER -in secret.pem -nocrypt > secret.key
  4. Edit the config.properties in src/main/resources/ and add the values from your Adobe Developer Console integration.

  5. Build

    Copied to your clipboard
    $ mvn clean package
  6. Run

    Copied to your clipboard
    $ java -jar target/IMS-Client-1.0-SNAPSHOT-jar-with-dependencies.jar

See Java client resources on GitHub for example code and additional resources.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.