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

124
Views
Cómo almacenar la carga útil enviada por Trello cuando se activa el webhook

He creado una función que puede publicar un webhook en Trello. El webhook se creó con éxito, pero no sé cómo almacenar la carga útil json enviada por Trello, cada vez que se activa el webhook. ¿Cómo obtengo estos datos y potencialmente los almaceno en mi programa?

 function getApiData(url, restVar, name, bodyData) { console.log(`url:`, url); if (restVar === `GET`) { return new Promise((resolve, reject) => { console.log(`Get:`, name); fetch(`${url}`, { method: `${restVar}`, headers: { 'Content-Type': 'application/json' }, }) .then(response => response.json()) .then(data => { console.log('Success:', data); resolve(data) }) .catch((error) => { console.error('Error:', error) reject(error); }) }); } else if (restVar != `GET`) { return new Promise((resolve, reject) => { console.log(name) bodyData = JSON.stringify(bodyData); fetch(`${url}`, { method: `${restVar}`, headers: { 'Content-Type': 'application/json' }, body: bodyData }) .then(response => response.json()) .then(data => { console.log('Success:', data); resolve(data) }) .catch((error) => { console.error('Error:', error) reject(error); }) }); } }

Soy bastante nuevo en webhooks y desarrollo web en general. Cualquier ayuda es muy apreciada. ¡Qué tengas un lindo día! :D

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!