Init
public struct Init : Codable
Init
holds the properties of values to be set when initialzing a map.
-
Client id provided to you by Mappedin to access our API
Note
Contact your Mappedin representative if you do not have one.Declaration
Swift
public var clientId: String?
-
Client secret provided to you by Mappedin to access our API
Note
Contact your Mappedin representative if you do not have one.Declaration
Swift
public var clientSecret: String?
-
Name string of your venue
Declaration
Swift
public var venue: String
-
Perspective of the venue
Declaration
Swift
public var perspective: String?
-
Base url string of the venue
Declaration
Swift
public var baseUrl: String?
-
Boolean value of whether there is no authorization
Declaration
Swift
public var noAuth: Bool
-
Construct a
MPIOptions.Init
object with the given propertiesDeclaration
Swift
public init( clientId: String? = nil, clientSecret: String? = nil, venue: String, perspective: String = "Website", baseUrl: String? = nil, noAuth: Bool = false, headers: [MPIHeader]? = nil )
Parameters
clientId
given client id
clientSecret
given client secret
venue
given venue name
perspective
perspective
baseUrl
baseUrl
noAuth
whether there is no authorization
headers
an array of headers for the request
-
Declaration
Swift
public func encode(to encoder: Encoder) throws