public class Contentstack
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Stack |
stack(java.lang.String stackApiKey,
java.lang.String accessToken,
java.lang.String environment)
Authenticates the stack api key of your stack.
|
static Stack |
stack(java.lang.String stackApiKey,
java.lang.String accessToken,
java.lang.String environment,
Config config)
Authenticates the stack api key of your stack.
|
public static Stack stack(java.lang.String stackApiKey, java.lang.String accessToken, java.lang.String environment) throws java.lang.Exception
stackApiKey
- application api Key of your application on Contentstack.accessToken
- access tokenenvironment
- environment nameStack
instance.java.lang.Exception
- Stack stack = Contentstack.stack("blt5d4sample2633b", "blt6d0240b5sample254090d", "stag");
public static Stack stack(java.lang.String stackApiKey, java.lang.String accessToken, java.lang.String environment, Config config) throws java.lang.Exception
stackApiKey
- application api Key of your application on Contentstack.accessToken
- access tokenenvironment
- environment nameconfig
- Config
instance to set environment and other configuration details.Stack
instance.java.lang.Exception
- Stack stack = Contentstack.stack("blt5d4sample2633b", "blt6d0240b5sample254090d", "stag");