Skip to content

Commit 04ba4a1

Browse files
committed
using new app id & app secret
1 parent 851d6e7 commit 04ba4a1

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/ewelink-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const makeFakeIMEI = () => {
1313

1414
const makeAuthorizationSign = body =>
1515
crypto
16-
.createHmac('sha256', '6Nz4n0xA8s8qdxQf2GqurZj2Fs55FUvM')
16+
.createHmac('sha256', '4G91qSoboqYO4Y0XJ0LPPKIsq8reHdfa')
1717
.update(JSON.stringify(body))
1818
.digest('base64');
1919

lib/payloads/credentialsPayload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const credentialsPayload = ({ email, password }) => ({
88
version: 6,
99
ts: `${Math.round(new Date().getTime() / 1000)}`,
1010
nonce: `${nonce()}`,
11-
appid: 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq',
11+
appid: 'YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q',
1212
imei: makeFakeIMEI(),
1313
os: 'iOS',
1414
model: 'iPhone10,6',

mixins/devices/getDevicesMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getDevicesMixin = {
1818
getTags: 1,
1919
version: 6,
2020
ts,
21-
appid: 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq',
21+
appid: 'YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q',
2222
imei: makeFakeIMEI(),
2323
os: 'android',
2424
model: '',

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ewelink-api",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "eWeLink API for Node.js",
55
"author": "Martín M.",
66
"license": "MIT",

0 commit comments

Comments
 (0)