Marketplace
Marketplace
Contentstack Marketplace is a hub for apps and other resources that help you extend the capabilities of our core CMS and customize its functionalities. 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.
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID").host("marketplace.contentstack.io").region(Region.EU).build();| Name | Type | Description |
|---|---|---|
| organizationUid (required) | String | UID of the org |
| host | String | A custom host |
| region | Region.EU | DB region for Stack. You can choose from five regions namely, NA, EU, Azure NA, Azure EU, and GCP NA. The default region is set to NA. |
login
The login method is an optional method for the user to perform CRUD operations. Alternatively, users can perform CRUD operations directly using an authtoken without logging in.
| Name | Type | Description |
|---|---|---|
| emailId (required) | String | Your email id |
| password (required) | String | Your password |
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID").login(“emailId”, “password”).build();app
The app method creates and retrieves a new instance of the App class with the given parameters.
| Name | Type | Description |
|---|---|---|
| uid | String | UID of the app |
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build();
App app = marketplace.app("app_uid");authorizations
The authorizations method retrieves a new instance of the Auth class with the given client and orgId.
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build();
Auth authorizations = marketplace.authorizations();installation
The installation method retrieves a new instance of the Installation class with the specified client and orgId.
| Name | Type | Description |
|---|---|---|
| installationId | String | UID to create a new installation object. |
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build();
Auth authorizations = marketplace.installation();request
The request method retrieves a new instance of the AppRequest class with the specified client and orgId.
Example:
Marketplace marketplace = new Marketplace.Builder("ORGANIZATION_UID") .host("marketplace.contentstack.io").build();
AppRequest request = marketplace.request();