![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
node-qiwi-promise-api
Advanced tools
node-qiwi-api ================ Официальная [документация](https://developer.qiwi.com/qiwiwallet/qiwicom_ru.html) к Qiwi api.
Readme
Официальная документация к Qiwi api.
Для начала вам необходимо получить токен на сайте Qiwi.
npm install node-qiwi-promise-api
Инициализируйте новый кошелек с выданным токеном:
var Qiwi = require('node-qiwi-promise-api').Qiwi;
var Wallet = new Qiwi(token);
Теперь вы можете получать информацию о кошельке и совершать переводы на другие кошельки, мобильный телефон и карты.
Wallet.getAccountInfo()
.then((info) => {
console.log(info);
}
.catch((error) => {
console.log(error);
})
Wallet.getBalance()
.then((balance) => {
console.log(balance);
}
.catch((error) => {
console.log(error);
})
Wallet.getOperationHistory(requestOptions)
.then((history) => {
console.log(history);
}
.catch((error) => {
console.log(error);
})
requestOptions включают в себя:
Например информация о 25 исходящих платежах может быть получена следующим образом:
Wallet.getOperationHistory({rows: 25, operation: "OUT"})
Для получения статистики по суммам платежей за заданный период используется подзапрос запроса истории.
Wallet.getOperationStats(requestOptions)
.then((stats) => {
console.log(stats);
}
.catch((error) => {
console.log(error);
})
requestOptions: operation, sources, startDate, endDate - Параметры аналогичны параметрам в getOperationHistory.
Wallet.toWallet({ amount: '0.01', comment: 'test', account: '+79261234567' })
.then((status) => {
console.log(status);
}
.catch((error) => {
console.log(error);
})
Ничем не отличается от перевода на кошелек, за исключением того, что номер указывается без международного префикса:
Wallet.toMobilePhone({ amount: '0.01', comment: 'test', account: '9261234567' })
.then((status) => {
console.log(status);
}
.catch((error) => {
console.log(error);
})
Ничем не отличается от других переводов, за исключением того, что в account указывается номер кредитной карты:
Wallet.toCard({ amount: '0.01', comment: 'test', account: '5213********0000' })
.then((status) => {
console.log(status);
}
.catch((error) => {
console.log(error);
})
Wallet.toBank({ amount: '0.01', account: '5213********0000', account_type: '1', exp_date: 'MMYY' }, recipient)
.then((status) => {
console.log(status);
}
.catch((error) => {
console.log(error);
})
Wallet.checkComission(recipient)
.then((comissionInfo) => {
console.log(comissionInfo);
}
.catch((error) => {
console.log(error);
})
data.content.terms.commission.ranges[i]:
FAQs
node-qiwi-api ================ Официальная [документация](https://developer.qiwi.com/qiwiwallet/qiwicom_ru.html) к Qiwi api.
The npm package node-qiwi-promise-api receives a total of 1 weekly downloads. As such, node-qiwi-promise-api popularity was classified as not popular.
We found that node-qiwi-promise-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.