getCurrentSiteID
MaestroKit provides the getCurrentSiteID function to retrieve the currently configured Maestro Site ID. This asynchronous function returns an optional String, which contains the Site ID if it has been set during configuration, or nil if it hasn't been configured yet.
| Return Type | Description | Example | 
|---|---|---|
| String? | The current Maestro Site ID if available; returns nilif not configured. | "exampleSiteID" | 
Code Example
Task {
    if let siteID = await MaestroManager.shared.getCurrentSiteID() {
        print("Current Maestro Site ID: \(siteID)")
    } else {
        print("No Maestro Site ID configured.")
    }
}