Contentstack provides a Java Marketplace SDK (that uses Content Marketplace APIs) that developers can use to manage the content of your Contentstack account.
It houses third-party integrations, UI extensions (such as dashboard, sidebar, custom field, and RTE plugins), and other tools that you can plug into Contentstack at the stack as well as organizational level.
To integrate your Java app with Contentstack Java Management SDK, follow the steps mentioned in the Get Started with Java Marketplace SDK document
Here is an example of how you can start working with the Java Marketplace SDK
To initialize the SDK and import its library in your system, execute the following command:
import com.contentstack.sdk.marketplace;
Marketplace mk = Contentstack.Marketplace("Organization_Uid");Next, you need to initialize the marketplace class within your organization. For this, you need to pass your organization UID as parameter in the below command:
// Replace 'YOUR_ORG_ID' with your Contentstack organization UID
String organizationUid = "YOUR_ORG_ID";
Marketplace marketplace = new Marketplace(organizationUid);Once you have initialized the marketplace class within your organization, you can execute any query.
For example, to retrieve an instance of the App class, execute the following command:
// Get an instance of the App class
App app = marketplace.app();
// Alternatively, you can pass the app UID to retrieve a specific app
String appUid = "APP_UID";
App specificApp = marketplace.app(appUid);