Comparing version 1.0.5 to 1.1.0
{ | ||
"name": "api-devup", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "This library is intended for interaction with the service dev-up.ru", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,29 +28,17 @@ <p align="center"> | ||
- Get a list of managed user groups | ||
```js | ||
const API = require("api-devup"); | ||
let api = new API({ key: process.env.KEY }); // Ключ можно получить в личнои кабинете на сайте https://dev-up.ru | ||
getGroups({ | ||
user_id: process.env.USER_ID, | ||
const api = new API({ | ||
key: process.env.KEY, | ||
}); | ||
async function getGroups(params) { | ||
console.log(await api.getGroups(params)); | ||
async function run() { | ||
const response = await api.getGroups({ | ||
user_id: 1, | ||
}); | ||
console.log(response); | ||
} | ||
``` | ||
- To obtain a list of paid stickers to users | ||
```js | ||
const API = require("api-devup"); | ||
let api = new API({ key: process.env.KEY }); // Ключ можно получить в личнои кабинете на сайте https://dev-up.ru | ||
getStickers({ | ||
user_id: process.env.USER_ID, | ||
}); | ||
async function getStickers(params) { | ||
console.log(await api.getStickers(params)); | ||
} | ||
run().catch(console.log); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2991
44