[iOS] App Settings
Config Settings File
When using the VSeeClinicCore framework in your third-party app, you need to configure the necessary app settings to ensure proper integration and functionality. To do this, you will create a file called SampleAppSetting
with the following content:
import VSeeClinicCore
class SampleAppSetting: ClinicSettings {
static let shared = SampleAppSetting()
public var appStoreName = "cloud-clinic"
public var appStoreId = "1174048494"
override var networkBaseUrl: String {
return "https://api.vsee.io/vc/next/api_v3/"
}
override var apiKey: String {
return "E97B1CDC-1E83-49E7-84E2-E92E396F5B2E"
}
override var vseekitAPIKey: String {
return "nspgcxjwrn9vozsev4fztvjpu3zs5rcc5ztpdnqg9ieofhv3wwjar0fzzwgdilkj"
}
override var vseekitSecretKey: String {
return "gymt8ieejzlbqil8gzqzrsrwmm27bncx91rsfiked0gfxtxm6y1dl3fhigpwqpcu"
}
static func registerSetting() {
ClinicSettings.registerClass(self)
}
}
Explanation of the settings:
Parameter | Type | Description |
---|---|---|
|
| The name and ID of your app in the App Store. Replace the values with your app's actual name and ID. |
|
| This property sets the base URL for network requests made by the VSeeClinicCore framework. The provided URL is the endpoint for VSee's API. Do not change this unless instructed otherwise by VSee. |
|
| This property sets the API key for authentication with VSee's services. The provided key is an example; replace it with the API key provided to you by VSee. |
|
| API key for VSeeKit, which is a component of the VSeeClinicCore framework. Replace the values with the keys provided to you by VSee. |
|
| Secret key for VSeeKit, which is a component of the VSeeClinicCore framework. Replace the values with the keys provided to you by VSee. |
Example Usage
After creating the SampleAppSetting
configuration file, you can now use the settings throughout your project:
In your
AppDelegate.swift
, import theVSeeClinicCore
framework and theSampleAppSetting
class.
swiftCopy codeimport VSeeClinicCore
Inside the
application(_:didFinishLaunchingWithOptions:)
method, register the settings by calling theregisterSetting()
method:
swiftCopy codefunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
SampleAppSetting.registerSetting()
// Your other app setup code here
return true
}
Â