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

143
Views
Ayuda de Webhooks de STRAVA - Javascript. Obtener error de solicitud incorrecta

Estoy enviando solicitud de suscripción de la siguiente manera

 <form action="https://www.strava.com/api/v3/push_subscriptions" method="post" id="myform"> <input type="hidden" name="client_id" value="XXX"/> <input type="hidden" name="client_secret" value="XXXX"/> <input type="hidden" name="callback_url" value="XXXX"/> <input type="hidden" name="verify_token" value="STRAVA"/> <input type="submit" value="Connect Webhook"/> </form>

Y luego estoy tratando de validar la devolución de llamada usando PHP:

 $hubMode = $_GET['hub_mode']; $hubVerifyToken = $_GET['hub_verify_token']; $hubChal = $_GET['hub_challenge']; $submitChallenge = array("hub.challenge"=>$hubChal); header('Content-Type: application/json;'); http_response_code(200); echo json_encode($submitChallenge);

Sigo recibiendo un error como {"mensaje":"Solicitud incorrecta","errores":[{"recurso":"PushSubscription","field":"url de devolución de llamada","código":"no verificable"}]}

Por favor, ayuda en lo que estoy haciendo mal.

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

0

La URL de devolución de llamada debe estar disponible públicamente (no localhost). Puede usar Ngrok para redirigir desde una URL externa a su URL localhost.

Consulte este artículo de Strava sobre webhooks: https://developers.strava.com/docs/webhookexample/

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!