Skip to content

Commit

Permalink
Update constants.js
Browse files Browse the repository at this point in the history
Semicolons: Added semicolons where missing to maintain consistency.
Comment Consistency: Improved comments to be more descriptive and consistent.
Template Literals: Used a template literal for userAgent to concatenate packageVersion more clearly.
  • Loading branch information
jfarmer08 committed Aug 19, 2024
1 parent 9a8bd61 commit 8b82962
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
const packageVersion = require('../package.json').version
const packageVersion = require('../package.json').version;

module.exports = Object.freeze({
// Crypto Secrets
// Crypto Secrets (Required for device communication)
fordAppKey: "275965684684dbdaf29a0ed9", // Required for Locks
fordAppSecret: "4deekof1ba311c5c33a9cb8e12787e8c", // Required for Locks
oliveSigningSecret: "wyze_app_secret_key_132", // Required for the thermostat
oliveAppId: "9319141212m2ik", // Required for the thermostat
appInfo: "wyze_android_2.19.14", // Required for the thermostat
oliveAppId: "9319141212m2ik", // Required for the thermostat

// App emulation constants
// Application Information (for emulation)
appInfo: "wyze_android_2.19.14", // Required for the thermostat
phoneId: "wyze_developer_api",
appName: "com.hualai.WyzeCam",
appVer: "wyze_developer_api",
appVersion: "wyze_developer_api",
sc: "wyze_developer_api",
sv: "wyze_developer_api",
authApiKey: "WMXHYf79Nr5gIlt3r0r7p9Tcw5bvs6BB4U8O8nGJ",
userAgent: "unofficial-wyze-api/" + packageVersion,
userAgent: `unofficial-wyze-api/${packageVersion}`,

//URLs
// Base URLs for API requests
authBaseUrl: "https://auth-prod.api.wyze.com",
apiBaseUrl: "https://api.wyzecam.com",
});

0 comments on commit 8b82962

Please sign in to comment.