using new app id & app secret

This commit is contained in:
Martín M
2020-05-19 09:48:22 -03:00
parent 851d6e7a79
commit 04ba4a1bb3
5 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ const makeFakeIMEI = () => {
const makeAuthorizationSign = body =>
crypto
.createHmac('sha256', '6Nz4n0xA8s8qdxQf2GqurZj2Fs55FUvM')
.createHmac('sha256', '4G91qSoboqYO4Y0XJ0LPPKIsq8reHdfa')
.update(JSON.stringify(body))
.digest('base64');

View File

@@ -8,7 +8,7 @@ const credentialsPayload = ({ email, password }) => ({
version: 6,
ts: `${Math.round(new Date().getTime() / 1000)}`,
nonce: `${nonce()}`,
appid: 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq',
appid: 'YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q',
imei: makeFakeIMEI(),
os: 'iOS',
model: 'iPhone10,6',

View File

@@ -18,7 +18,7 @@ const getDevicesMixin = {
getTags: 1,
version: 6,
ts,
appid: 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq',
appid: 'YzfeftUVcZ6twZw1OoVKPRFYTrGEg01Q',
imei: makeFakeIMEI(),
os: 'android',
model: '',

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "ewelink-api",
"version": "2.0.0",
"version": "2.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "ewelink-api",
"version": "2.0.0",
"version": "2.0.1",
"description": "eWeLink API for Node.js",
"author": "Martín M.",
"license": "MIT",