FAQ Database Discussion Community


How to handle Github Webhook in Java?

java,github,webhooks
Simple question.Got registered Payload URL on Github: using ngrok.com (ngrok) link like explained in Github documentation for Webhooks: Creating Webhooks ngrok definition: “I want to securely expose a local web server to the internet and capture all traffic for detailed inspection and replay.” When i send POST request with payload...

How to add values to a YAML hash using Ruby

ruby,hash,yaml,webhooks,hiera
I have a bunch of Hashes in a YAML file (its for Puppet/Hiera based config of some servers) that looks like so: --- apache_vhosts: 'webuser.co.uk': ip: '*' port: '80' serveraliases: ['www.webuser.co.uk',] add_listen: false docroot: '/home/webuser/public_html' docroot_owner: 'webuser' docroot_group: 'apache' serveradmin: '[email protected]' scriptalias: '/home/webuser/public_html/cgi-bin/' access_log_format: '\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s...

Webhooks with Contentful and node

javascript,node.js,express,webhooks,contentful
Really struggling to get this working. I have a webhook definition setup in Contentful. When I publish an entry in Contentful it sends an HTTP POST request to webhooks.example.com. At that subdomain I have a NodeJS server running to accept the request. I've looked at the Contentful API docs, which...

can i use the “if” statement with the “else” part without the curly braces? [duplicate]

php,github,webhooks
This question already has an answer here: PHP - If/else, for, foreach, while - without curly braces? 8 answers i am trying to go over a code someone once did in our organization and now he is gone and no one can help me with that. we have an...

how to create slack incoming webhook using the api

webhooks,slack-api
Is there a way to create the webhooks using an api. I want to automate a group creation and would help having a webhook creation api. But i cant find any doc on how to do this. Thanks Suppandi...

Reading Jira Webhook POST data

java,servlets,jira,webhooks
I am trying to read Jira issue data using a webhook that posts the data to my servlet. When I travserve the request parameters map, I don't find anything in it. But the content lenght shows as "8876" which means webhook is sending the data. Somehow I am not able...

How can I consume a Json Payload from a webhook and display certain features of the Json in vb.net MVC?

json,asp.net-mvc,vb.net,jira,webhooks
I am currently working on an ASP.NET visual basic MVC application that will consume a webhook that has been fired from JIRA when it has been fired, then it will display certain bits of that information in the application. So far I have successfully got the Webhook to fire successfully...

Jenkins + GitHub Plugins webhooks not working

github,jenkins,webhooks
I'm using latest (v1.10) Jenkins GitHub plugin, Jenkins v1.1 My webhook integration fails with the error: java.lang.IllegalArgumentException: Github Webhook event of type ping is not supported. Only push events are current supported Looks like GitHub is using some kind of 'ping' events, that are not supported. Or there is some...

Setup Github Webhook for AWS EC2 server

github,http-post,webhooks
I have a webapp deployed in aws ec2 instance. I recently got to know about Github Webhook. Now i am trying to setup webhook service for my ec2 server. Can someone pls give a walk-through about: 1. How to receive the webhook payload for server endpoint. 2. What will be...

Simple php post hook on Bitbucket doesn't work

php,bitbucket,webhooks
I'm having a problem with a post hook on bitbucket. It's a simple php script just a proof of concept: <?php `cd /etc/puppet/environments/production/modules && git pull`;?> In the log file I can see that Bitbucket is hitting my hook: 131.103.20.165 - - [27/May/2015:09:15:59 -0700] "POST /githubupdate.php HTTP/1.1" 200 70 "-"...

How to write a case statement with nested JSON in rails

ruby-on-rails,json,webhooks
I have an app that is integrated with the Easypost API (for shipping stuff, really cool). I'm using their tracking information webhooks to fire events in my app. I'm using ruby case statements to accomplish this. Here's a link to Easypost's API doc: https://www.easypost.com/docs/api#webhooks I would like to match my...

Receiving webhook data and save them in db

php,webhooks
I want to handle data, that is sended by a trello webhook. There for the webhook posts to a url like site.com/tracker.php In the tracker.php I want to save the data in a database. For that I need to get some params. This is a example of the code I...

Bigcommerce API - Creating Webhooks - Invalid Header

php,bigcommerce,webhooks,guzzle
I'm making small steps into this project I am working on. Now creating and registering a webhook. I'm getting the below response: 400 - Invalid Header I have tried the following code: // Send a request to register a web hook $http2 = new Client('https://api.bigcommerce.com', array( 'request.options' => array( 'exceptions'...

Stripe Cashier Webhooks

php,stripe-payments,laravel-5,webhooks,ngrok
I'm looking for clarification of the use of the Webhooks Controller in Stripe Cashier as described in the Laravel Docs as I can't confirm that my application is receiving the webhook events: http://laravel.com/docs/5.0/billing#handling-failed-payments The docs advise to point a route to the webhook controller like this: Route::post('stripe/webhook', 'Laravel\Cashier\[email protected]'); The URI...

Square-Connect Webhook PHP post no data

webhooks,square-connect
I have Square-Connect Webhooks endabled. I am receiving POST's to my server script. Yet the $_POST array seems to be empty. Here is my code: <?php $sRM = $_SERVER['REQUEST_METHOD'] ; $sH = null ; if ( 'PUT' == $sRM ) { $sH = file_get_contents( 'php://input' ) ; } else if...

laravel verify shopify webhook

laravel,shopify,sha256,webhooks,verify
How can I verify my shopify webhooks in laravel? Currently I'm doing the following: //Validate secret if ( Request::header( 'X-Shopify-Hmac-Sha256' ) ) { $hmac_header = Request::header( 'X-Shopify-Hmac-Sha256' ); $data = Request::json(); $calculated_hmac = base64_encode( hash_hmac( 'sha256', $data, Config::get( 'constants.SHOPIFY_APP_SECRET' ), true ) ); if ( $hmac_header != $calculated_hmac ) {...

How to forward incoming mail to an HTTP endpoint?

email,http,webhooks,mailgun
I would like to programmatically receive e-mails without the hassle of handling standard mail protocols (SMTP). Is it possible to set a Mailgun route to forward (POST) all mail to an HTTP(S) endpoint? Currently, it seems to me that the provided webhooks can only notify you, rather than POST an...

How does a WebHook work?

php,http,paypal,stripe-payments,webhooks
I'm currently implementing payments platform to my website wich is very similar to Stripe, but I still can't understand the process or how should I use WebHooks since I need to specify one on my account in the payments platform. So let's say a person pays in my website for...

Custom post-receive hook with gitlab

git,gitlab,webhooks
I am trying to set up a custom post-receive hook using gitlab I am following their documentation here I have an executable post-receive file in the custom_hooks folder with the following code: !/bin/bash echo "post-receive firing | wall git pull If I run this file with: ./post-receive It works fine....

Update Parse.com User from Stripe Webhook

javascript,wordpress,parse.com,stripe-payments,webhooks
Firstly I see there are several Parse / Stripe questions on here however none are of any help to me. I have a mobile application that has both free and paid features. A variable is stored on the User class in Parse.com and it is checked for permissions when running...

Can't return 200 to Stripe Webhook

ruby-on-rails,stripe-payments,http-status-codes,webhooks
I am trying to test receive JSON webhooks from Stripe. I have read: Stripe Webhook on Rails https://stripe.com/docs/webhooks They require a 200 status response in order to acknowledge receipt. I want to solve this before moving on to dealing with the JSON. routes post 'webhook' => 'web_hook#webhook' controller Stripe.api_key =...

Retrieve customer email from ID contained in webhook in Parse.com

javascript,parse.com,stripe-payments,webhooks
I have an App using Parse.com as a backend and an external site that acts as my payment gateway. Upon receiving the customer/subscription webhook data from Stripe I wish to lookup the users email so I can then run a Cloud Code function and change their user status to 'paid'...