...
vizpin.sdk
package contains a class VIZpinSDK
. Following code snippet shows creating an object and initializing your app with the app constants. APP_VERSION should display <major.minor.patch> in numeric format.
Code Block |
---|
sdk = new VIZpinSDK(); sdk.apiEndPoint = "<https://YOUR_SANDBOX_HERE.force.com/VIZpin/services/apexrest/sdk";> sdk.APP_ID = "YOUR_APP_ID_HERE"; sdk.APP_NAME = "OEM AppName"; sdk.APP_KEY = "YOUR_APP_KEY_HERE"; sdk.APP_KEY_VERSION = "1.1"; sdk.APP_VERSION = "OEM AppVersion_1.0.0"; VPUser user = new VPUser(); user.phone = "USER_PHONE_NUMBER"; user.password = "USER_PASSWORD"; user.bluetooth = VIZpinSDK.BLE_MODE; sdk.initialize(user); // Use this on an app start where you have cached user credentials |
...