public class Contentstack extends Object
| Modifier and Type | Method and Description |
|---|---|
static Stack |
stack(String stackApiKey,
String accessToken,
String environment)
Authenticates the stack api key of your stack.
|
static Stack |
stack(String stackApiKey,
String accessToken,
String environment,
Config config)
Authenticates the stack api key of your stack.
|
public static Stack stack(String stackApiKey, String accessToken, String environment) throws Exception
public static Stack stack(String stackApiKey, String accessToken, String environment, Config config) throws 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.Exception -
Stack stack = Contentstack.stack("blt5d4sample2633b", "blt6d0240b5sample254090d", "stag");
Copyright © 2021 Contentstack.. All rights reserved.