TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class Services

    Service abstractions for external integrations

    This class provides convenient interfaces for integrating with external services commonly used in IoT applications, including messaging, notifications, file handling, and third-party platforms. All services are configured with your analysis token.

    import { Services } from "@tago-io/sdk";

    const services = new Services({ token: "your-analysis-token" });

    await services.sms.send({
    to: "+1234567890",
    message: "Alert: Temperature threshold exceeded!"
    });
    await services.email.send({
    to: "user@example.com",
    subject: "IoT Report",
    message: "Please find the report attached.",
    attachment: services.attachment.create(pdfBuffer, "report.pdf")
    });
    services.console.log("Processing data...");
    services.console.error("Failed to connect to sensor");
    // Using static methods for one-off operations
    await Services.notification.send({
    message: "System alert",
    title: "IoT Alert"
    });
    Index

    Constructors

    Properties

    attachment: Attachment = ...
    aws_sqs: AWSSQS = ...
    console: ConsoleService = ...
    email: Email = ...
    mqtt: MQTT = ...
    notification: Notification = ...
    pdf: PDFService = ...
    sendgrid: Sendgrid = ...
    sms: SMS = ...
    smtp: SMTP = ...
    twilio: Twilio = ...
    twilio_whatsapp: TwilioWhatsapp = ...

    Accessors