Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
yoomoney-sdk
Advanced tools
⭐ Typed YooMoney Wallet SDK for NodeJS. Supported API's: Auth, Wallet & Notifications
Типизированный SDK для API YooMoney для NodeJS
npm
npm i yoomoney-sdk
Yarn
yarn add yoomoney-sdk
pnpm
pnpm add yoomoney-sdk
Если вызов метода API возвращает ошибку (то-есть есть поле error
в ответе), то библиотека кидает ошибку YMApiError
, которая содержит поля:
code
- Значение поля error
в ответеresponse
- Ответ полностью# Клонируем репозиторий
git clone https://github.com/AlexXanderGrib/yoomoney-sdk.git
# Заходим в папку
cd yoomoney-sdk
# Устанавливаем зависимости
npm install
# Собираем библиотеку
npm run build
# Запускаем скрипт
node examples/4-get-token.js
# .env
YOOMONEY_TOKEN=4100117723869225.C277E77...
// index.js
const { API } = require("yoomoney-sdk");
const { config } = require("dotenv");
// Подгружаем файл .env
config();
const api = new API(process.env.YOOMONEY_TOKEN);
api.accountInfo().then((info) => console.log(info));
Проект распространяется под лицензией MIT. Смотрите LICENSE.txt
Что делаем?:
CONTRIBUTING.md
Библиотека - маленькая, я отвечаю быстро. Не стесняйтесь писать Issue, даже если кажется что они глупые. Если что, можете писать в
Telegram: @AlexXanderGrib
У нас есть точно такое-же типизированное SDK для QIWI 👉 github.com/AlexXanderGrib/node-qiwi-sdk
FAQs
⭐ Typed YooMoney Wallet SDK for NodeJS. Supported API's: Auth, Wallet & Notifications
The npm package yoomoney-sdk receives a total of 7 weekly downloads. As such, yoomoney-sdk popularity was classified as not popular.
We found that yoomoney-sdk 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.