malte.huener
malte.huener
BRBuildShip + Rowy
Created by malte.huener on 5/23/2024 in #❓・buildship-help
How to get the right request variable?
No description
7 replies
BRBuildShip + Rowy
Created by malte.huener on 5/21/2024 in #❓・buildship-help
Facebook webhook
Hi there.. I am trying to set up a facebook webhook.. Facebooks webhook is sending the folling data: { "originalUrl": "/fbWebhook?hub.mode=subscribe&hub.challenge=1325&hub.verify_token=5f7c9a2d0e7c4baf4a76d6f7a5e34c65e0fb7c4a2b7f9c0d1e", "body": {}, "host": "7b442q.buildship.run", "hostname": "7b442q.buildship.run", "path": "/fbWebhook", "ip": "::ffff:169.254.1.1", "querystring": "hub.mode=subscribe&hub.challenge=1325&hub.verify_token=5f7c9a2d0e7c4baf4a6f7a5e34c65e0fb7c4a2b7f9c0d1e", "ips": [], "subdomains": [ "7blo2q" ], "protocol": "http", "method": "GET", "query": { "hub.challenge": "1325", "hub.verify_token": "0e34a6f7a5e34c65e0fb7c4a2b7f9c0d1e", "hub.mode": "subscribe" } } As a response for authentication the webhook expected the value from query.hub.challenge. And here is already my problem: How to send back that value back as a response? I encouter multiple errors and think that is has something to with the dot notation of the key "hub.challenge".. Error "Cannot read properties of undefined (reading 'challenge')" Can you help me?
5 replies
BRBuildShip + Rowy
Created by malte.huener on 5/20/2024 in #❓・buildship-help
How to add authentication on api call trigger
Hi there.. I am making my first steps with Buildship and don't know, how to add an authentication on the API Call trigger. For exmaple: Allow only webhooks to call the trigger when the correct bearer token is send. How do I do that?
7 replies