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

151
Views
¿Dónde agrego el tiempo para enviar SMS en Javascript para la integración de Pipedreams a Ring Central?

No sé Java Script. Pero estoy tratando de aprender para que esto funcione.

El objetivo: crear una notificación de sms programada después de que se haya recibido un sms.

El código parece haber sido creado por js07 en github:

https://github.com/PipedreamHQ/pipedream/blob/master/components/twilio/actions/send-sms/send-sms.mjs

Aquí está el código de la aplicación que estoy usando en Pipe Dreams:

 // Read the Twilio docs at https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource import twilio from "../../twilio.app.mjs"; import { phone } from "phone"; export default { key: "twilio-send-sms", name: "Send SMS", description: "Send a simple text-only SMS. [See the docs](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource) for more information", type: "action", version: "0.0.6", props: { twilio, from: { propDefinition: [ twilio, "from", ], }, to: { propDefinition: [ twilio, "to", ], }, body: { propDefinition: [ twilio, "body", ], }, }, async run({ $ }) { // Parse the given number into its E.164 equivalent // The E.164 phone number will be included in the first element // of the array, but the array will be empty if parsing fails. // See https://www.npmjs.com/package/phone const toParsed = phone(this.to); if (!toParsed || !toParsed.phoneNumber) { throw new Error(`Phone number ${this.to} couldn't be parsed as a valid number.`); } const data = { to: toParsed.phoneNumber, from: this.from, body: this.body, }; const resp = await this.twilio.getClient().messages.create(data); $.export("$summary", `Successfully sent a new SMS, "${this.twilio.messageToString(resp)}"`); return resp; }, };

about 4 years ago · Juan Pablo Isaza
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!