YourTrend SDK for Node.js
The Node.js SDK is a single dependency-free file. Download it, include it, and send email, SMS and push via the YourTrend REST API.
स्थापित करें
curl -O https://yourtrend.online/sdk/yourtrend.js # Node 18+
ईमेल भेजें
const YourTrend = require('./yourtrend');
const yt = new YourTrend('YOUR_API_KEY');
const res = await yt.sendEmail(
'noreply@yourdomain.com',
'user@example.com',
'Hello from YourTrend',
'<h1>Hi!</h1>'
);
console.log(res.status); // 202
Methods: sendEmail, sendSms, push (web push) and validateEmail. Each returns the HTTP status and the response body.
FAQ
Any external dependencies?
No. The Node.js SDK is a single standard-library file, no package manager required.
Where do I get an API key?
In the dashboard → API keys. Issue a key with only the scopes it needs.
कुछ ही मिनटों में भेजना शुरू करें
शुरू करने के लिए मुफ्त। जब आप बढ़ते हैं, तो स्केल करें। आपके ग्राहक हर संदेश प्राप्त करते हैं।
यह पृष्ठ खोजने पर मिला
वास्तविक खोज क्वेरी जो लोगों को यहाँ लाती हैं — हाइलाइट किए गए क्वेरी मिलान पृष्ठ खोलते हैं।