Compare commits

..

3 Commits
2.0.0 ... 2.0.1

Author SHA1 Message Date
Martín M
04ba4a1bb3 using new app id & app secret 2020-05-19 09:50:05 -03:00
Martín M
851d6e7a79 fixed docs url 2020-05-15 18:37:45 -03:00
Steve
3439f60465 fix broken link to getRegion documentation (#73) 2020-02-25 09:04:52 -03:00
7 changed files with 7 additions and 7 deletions

View File

@@ -17,4 +17,4 @@
## Usage
Check library documentation and examples at https://github.com/skydiver/ewelink-api/docs
Check library documentation and examples at https://github.com/skydiver/ewelink-api/tree/master/docs

View File

@@ -27,4 +27,4 @@ const ewelink = require('ewelink-api');
})();
```
> If you don't know your region, use [getRegion](/docs/available-methods/getregion) method
> If you don't know your region, use [getRegion](/docs/available-methods/getregion.md) method

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",