
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
asanak-sms-client
Advanced tools
یک کلاینت مدرن Node.js برای ارسال پیامک، پیامک نظیر به نظیر، پیامک خدماتی و دریافت گزارشها از طریق یک سرویس RESTful.
در ترمینال خود اجرا کنید:
npm install asanak-sms-client
1- مقداردهی اولیه کلاینت:
const AsanakSmsClient = require('asanak-sms-client');
const sms = new AsanakSmsClient('your-username', 'your-password');
2- ارسال پیامک تکی یا چند مقصدی
sms.sendSms('9821XXXX', '09120000000', 'کد تایید شما: 1234', 1)
.then(data => console.log(data))
.catch(error => console.error(error));
3- ارسال پیامک نظیر به نظیر (P2P)
sms.p2p(['9821XXXX1', '9821XXXX2'], ['09120000000', '09120000001'] ['کد تایید شما: 1234', 'کد تایید شما: 4567'], [1, 0])
.then(data => console.log(data))
.catch(error => console.error(error));
4- ارسال پیامک خدماتی با قالب (OTP)
sms.template('123456', {"code": "1234"}, '09120000000', 1)
.then(data => console.log(data))
.catch(error => console.error(error));
5- استعلام وضعیت پیامک
sms.msgStatus(['12345678', '12345679'])
.then(data => console.log(data))
.catch(error => console.error(error));
6- مشاهده موجودی اعتبار پیامکی
sms.getCredit()
.then(data => console.log(data?.credit))
.catch(error => console.error(error));
7- مشاهده موجودی اعتبار پیامکی (ریال)
sms.getRialCredit()
.then(data => console.log(data?.credit))
.catch(error => console.error(error));
8- دریافت لیست قالبهای پیامک
sms.getTemplates()
.then(data => console.log(data))
.catch(error => console.error(error));
FAQs
Modern Node.js SMS client for Asanak SMS API
The npm package asanak-sms-client receives a total of 5 weekly downloads. As such, asanak-sms-client popularity was classified as not popular.
We found that asanak-sms-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.