Contentstack
Contentstack
Create a new Stack instance with stack’s apikey, deliveryToken, environment name and config.
stack(apiKey:deliveryToken:environment:region:host:apiVersion:branch:config:)
Create a new Stack instance with stack’s API key, delivery token, environment name and config.
| Name | Type | Description |
|---|---|---|
| apiKey (required) | string | stack apiKey. |
| deliveryToken (required) | String | stack delivery token. |
| environment (required) | String | environment name in which to perform action. |
| region | Contentstack region | |
| host | string | Name of Contentstack api server. |
| apiVersion | string | API version of Contentstack api server. |
| config | ContentstackConfig | Config of stack. |
let stack = Contentstack.stack(apiKey: "<API_KEY>", deliveryToken: "<DELIVERY_TOKEN>", environment: "<ENVIRNOMENT>")