Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
enviar variables ocultas a través del enlace node.js

tengo este codigo:

 client.messages.create({ to: clientPhoneNumber, from: 'mynumber', body: 'hello ' + clientName + ', your training session begins in 24 hours. To cancel your session anytime within the next 24 hours, click here: http://localhost:3000/cancelevent?eventid=' + eventID + '' }, function(err, data) { if (err) { console.log("err: " + err) } console.log(data) });

y luego envía el mensaje de texto. Sin embargo, para ser honesto, se ve feo para el usuario. ¿Es posible enviarles el mismo enlace pero ocultar la ?eventid=' + eventID + '' ? Puede ser una pregunta extraña, pero gracias por la ayuda!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

para cualquier persona en el futuro que pueda necesitar esto como referencia, usé tinyurl

puedes instalarlo para node.js :

 npm i tinyurl

entonces lo que puedes hacer es usarlo simplemente así:

 let eventID = "0987654321" let url = "http://localhost:3000/cancelevent?eventid=" + eventID + "" var TinyURL = require('tinyurl'); TinyURL.shorten(url).then(function(res) { console.log(res) }, function(err) { console.log(err) })

y ahí lo tienes, ¡simple acortador de url !

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!