Easy script to send SMS via Tago.Io by Analysis

Easy script to send SMS via Tago.Io by Analysis

@Brugnetti brugnetti

Hello,
I try to send me a SMS by Analysis.
In the console the result is ok but I cant receive the message.

/*
 * SMS

 * Version not released 1.1.00
 * Added SMS
 * 
 */
 const { Analysis, Utils, Account, Device, Services } = require('@tago-io/sdk');

 // The function myAnalysis will run when you execute your analysis
 async function sendSMSNotification(context) {
  const smsService = new Services({ token: context.token }).sms;
  const messageText = "HELLO";
  const phone = "+4179xxxxxxx" // in my code xxx is a good phone number

  await smsService.send({
    to: phone, 
    message: messageText}).then(context.log).catch(context.log);
 }

Could you indicate me where i did an error ?

Thank