
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@devotel/devhub
Advanced tools
Official Node.js SDK for the DevHub Communication API.
npm install @devotel/devhub
import DevHubSDK from "@devotel/devhub";
const devhub = new DevHubSDK({
apiKey: "your-api-key",
});
// Send SMS
await devhub.sms.send({
to: "+1234567890",
message: "Hello from DevHub!",
});
// Send Email
await devhub.email.send({
to: "user@example.com",
subject: "Hello",
html: "<h1>Hello from DevHub!</h1>",
});
// Send WhatsApp message
await devhub.whatsapp.sendNormalMessage({
to: "+1234567890",
type: "text",
text: { body: "Hello from DevHub!" },
});
// Send SMS
await devhub.sms.send({
to: "+1234567890",
message: "Your message",
from: "optional-sender-id",
});
// Get available senders
await devhub.sms.getSenders();
// Buy a number
await devhub.sms.buyNumber({
country_code: "US",
area_code: "555",
});
// Get available numbers
await devhub.sms.getNumbers();
// Send email
await devhub.email.send({
to: "recipient@example.com",
subject: "Subject",
html: "<p>HTML content</p>",
text: "Plain text content",
});
// Get WhatsApp accounts
await devhub.whatsapp.getAccounts();
// Send template message
await devhub.whatsapp.sendTemplateMessage("account-id", {
to: "+1234567890",
template: {
name: "template-name",
language: { code: "en" },
},
});
// Send normal message
await devhub.whatsapp.sendNormalMessage({
to: "+1234567890",
type: "text",
text: { body: "Hello!" },
});
// Get templates
await devhub.whatsapp.getTemplates();
// Get contacts
await devhub.contacts.getContacts();
// Create contact
await devhub.contacts.createContact({
firstName: "John",
lastName: "Doe",
phoneNumber: "+1234567890",
email: "john@example.com",
});
// Update contact
await devhub.contacts.updateContact("contact-id", {
firstName: "Jane",
});
// Create custom field
await devhub.contacts.createCustomField({
name: "Company",
type: "text",
required: false,
});
// Get RCS accounts
await devhub.rcs.getAccounts();
// Send RCS message
await devhub.rcs.send({
to: "+1234567890",
content: { text: "Hello from RCS!" },
});
// Create RCS template
await devhub.rcs.createTemplate({
name: "greeting",
content: "Hello {{name}}!",
});
// Get contact groups
await devhub.contactGroups.getContactGroups();
// Create contact group
await devhub.contactGroups.createContactGroup({
name: "VIP Customers",
description: "High value customers",
});
// Update contact group
await devhub.contactGroups.updateContactGroup("group-id", {
name: "Premium Customers",
});
// Send message via any channel
await devhub.messages.send({
channel: "SMS",
sms: {
to: "+1234567890",
message: "Hello!",
},
});
All methods return a response object with the following structure:
{
success: boolean,
data?: any,
error?: string
}
Example:
const result = await devhub.sms.send({
to: "+1234567890",
message: "Hello!",
});
if (result.success) {
console.log("Message sent:", result.data);
} else {
console.error("Error:", result.error);
}
MIT
FAQs
Node.js SDK for DevHub Communication API
The npm package @devotel/devhub receives a total of 2 weekly downloads. As such, @devotel/devhub popularity was classified as not popular.
We found that @devotel/devhub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.