public class Contentstack extends Object
Our APIs serve content via a powerful and robust content delivery network (CDN). Multiple datacenters around the world store a cached copy of your content. When a page request is made, the content is delivered to the user from the nearest server. This greatly accelerates content delivery and reduces latency.
| Modifier | Constructor and Description |
|---|---|
protected |
Contentstack() |
| Modifier and Type | Method and Description |
|---|---|
static Stack |
stack(String stackApiKey,
String deliveryToken,
String environment)
A stack is a space that stores the content of a project (a web or mobile
property).
|
static Stack |
stack(String stackApiKey,
String deliveryToken,
String environment,
Config config)
A stack is a space that stores the content of a project (a web or mobile
property).
|
protected Contentstack()
throws IllegalAccessException
IllegalAccessExceptionpublic static Stack stack(String stackApiKey, String deliveryToken, String environment) throws IllegalAccessException
stackApiKey - The API Key is a unique key assigned to each stack.deliveryToken - The Delivery Token is a read-only credential that you
can create for different environments of your stackenvironment - the environment for the stackIllegalAccessException - the illegal access exception
Example
{
@Code
Stack stack = contentstack.Stack("apiKey", "deliveryToken", "environment");
}
public static Stack stack(String stackApiKey, String deliveryToken, String environment, Config config) throws IllegalAccessException
stackApiKey - The API Key is a unique key assigned to each stack.deliveryToken - The Delivery Token is a read-only credential that you
can create for different environments of your stackenvironment - the environment for the stackconfig - the configIllegalAccessException - the illegal access exception Example
{ @Code Stack stack =
contentstack.Stack("apiKey", "deliveryToken",
"environment"); }Copyright © 2021 Contentstack.. All rights reserved.