webhooks

GitLab 5.2 Post-Receive WebHook

纵然是瞬间 提交于 2019-12-03 00:21:04
I'm running GitLab v5.2 on the same server as my production webserver (Document Root in /var/www). I'm trying to setup a standard GitLab Post-Receive Hook but am finding surprisingly little information about how to set up a script to process the posted JSON data. I'm not trying to do anything custom, just right out of the box, I want to receive the post-receive data at my website location (remember on the same server), and then pull from origin-master when it gets received (provided the post-receive data originating push was to the master branch). This way, the website found in /var/www is

Stuck on Google Home Tutorial

痴心易碎 提交于 2019-12-02 23:37:29
问题 I am working on an intro to Actions on Google tutorial. I made it to page 4 and I am stuck on the "Fulfillment Webhook and Deployment" stage. I put the sample backend code into a Go file called populationai.go. I'm confused as to how to do the commands listed in the "Using ngrok to locally run the Webhook" section in Windows, as they are designed for a different operating system. Should I be doing these steps in the command prompt of Windows in the first place? Thanks. https://www

How to catch the HTTP POST request sent by a Shopify Webhook

人走茶凉 提交于 2019-12-02 17:46:46
I'm somewhat of a noob, and not afraid to admit that, I'm working on this project as a learning experience to get better with php and serverside script/ing handling. I'm trying to come up with a way to use Shopify and simultaneously update an off server database every time an order is fulfilled from my Shopify cart. So for example, someone buys something from my online store, I want it to update my home databases inventory to show that it now has one less item. I've come to the conclusion that the best way to do this would be to setup a webhook notification that sends an HTTP POST request to

Create a GitHub webhook for when a pull request is accepted & merged to master

自作多情 提交于 2019-12-02 17:26:41
I have a webhook that currently fires on push to any branch. This triggers the webhook far too frequently. Ideally, the webhook would only fire when a pull request is merged into master . I don't see that as an option, though: Is there a way to get additional webhook options or to customize the webhook somehow? So, you can't customize the conditions of the trigger, but as LeGec mentions you can customize your code to only trigger when the Pull Request is merged. To do that, make sure your script responds to the PullRequestEvent . The conditions to test are: "action" is " closed " "merged"

Stuck on Google Home Tutorial

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 14:41:10
I am working on an intro to Actions on Google tutorial. I made it to page 4 and I am stuck on the "Fulfillment Webhook and Deployment" stage. I put the sample backend code into a Go file called populationai.go. I'm confused as to how to do the commands listed in the "Using ngrok to locally run the Webhook" section in Windows, as they are designed for a different operating system. Should I be doing these steps in the command prompt of Windows in the first place? Thanks. https://www.programmableweb.com/news/how-to-get-started-google-actions/how-to/2017/01/31?page=4 Here are the steps I'm

Verify Shopify webhook

末鹿安然 提交于 2019-12-02 14:08:36
问题 I believe that to have a Shopify webhook integrate with a Rails app, the Rails app needs to disable the default verify_authenticity_token method, and implement its own authentication using the X_SHOPIFY_HMAC_SHA256 header. The Shopify docs say to just use request.body.read . So, I did that: def create verify_webhook(request) # Send back a 200 OK response head :ok end def verify_webhook(request) header_hmac = request.headers["HTTP_X_SHOPIFY_HMAC_SHA256"] digest = OpenSSL::Digest.new("sha256")

Error Creating Shopify Webhook through the API

对着背影说爱祢 提交于 2019-12-02 13:24:57
问题 I am trying to create a Webhook through the API. When the Customer installs the app (Controller): def init_webhooks topics = ["products/create", "products/update", "products/delete"] topics.each do |topic| webhook = ShopifyAPI::Webhook.create(format: "json", topic: topic, address: "http://#{@current_host}/webhooks/#{topic}") raise "Webhook invalid: (#{topic}) #{webhook.errors}" unless webhook.valid? end end Here is the error from the log: RuntimeError (Webhook invalid: (products/create) #

How do I initialize a webhook receiver in ASP.Net MVC

99封情书 提交于 2019-12-02 11:34:30
问题 I'm following this guide here for installing and using webhooks in ASP.Net MVC, but it looks like this guide is for a wep api type project. I'm using a MVC type project and there is no Register method, unlike a API project. In MVC we have a RegisterRoutes method. So how do I register my webhooks in MVC? an API project that uses Register and config, my ASP.Net MVC site doesn't have this. MVC uses RegisterRoutes UPdate Here I added a web api controller and the code I posted below is whats in

Dialogflow disable Google Assistant

若如初见. 提交于 2019-12-02 10:04:30
I am trying to enable webhook fulfillment in my Dialogflow agent. However, whenever I go to input the URL of my service, I get an error saying You can use only https:// in fulfillment url when "Google Assistant" integration enabled . I have no interest in using the Google Assistant integration. So how can I disable it so that I can send webhooks to my http:// service? Thanks I just had the same issue, if you don't need a secure connection via HTTPS here is how to remove Google Assistant integration and use a simple HTTP webhook fulfillment : Export your DialogFlow bot : Delete the bot: Create

Get payload parameters in Jenkins

喜夏-厌秋 提交于 2019-12-02 06:56:27
I'm a newbie in Jenkins. I followed this help to implement Jenkins, Github and Webhook. However, I'm stuck in this problem. I want to get the payload parameters in Jenkins to check information such as changes, actions...from payload json. I wrote some script to test. ACTION and $payload always returns empty # !/bin/bash ACTION=`echo $payload | php -r '$data = file_get_contents("php://stdin"); $json = json_decode($data, true); echo $json["action"];'` I read some tutorials but unsuccessfully. There are few steps that you should follow: Configure a web-hook in GitHub by which you will start