Contentstack
public struct Contentstack
Undocumented
-
Create a new Stack instance with stack’s
apikey
,deliveryToken
,environment
name andconfig
.Example usage:
let stack = Contentstack.stack(apiKey: apiKey, deliveryToken: deliveryToken, environment: environment) // Initiate Stack instance for `EU` region: let stack = Contentstack.stack(apiKey: apiKey, deliveryToken: deliveryToken, environment: environment, region: .eu)
Declaration
Swift
public static func stack(apiKey: String, deliveryToken: String, environment: String, region: ContentstackRegion = ContentstackRegion.us, host: String = Host.delivery, apiVersion: String = "v3", branch: String? = nil, config: ContentstackConfig = ContentstackConfig.default) -> Stack
Parameters
apiKey
stack apiKey.
accessToken
stack delivery token.
environment
environment name in which to perform action.
region
Contentstack region
host
name of Contentstack api server.
apiVersion
API version of Contentstack api server.
config
config of stack.
Return Value
Stack instance
-
Undocumented
See moreDeclaration
Swift
public struct Utils