webhooks

Read webhook payload in Gitlab CI

↘锁芯ラ 提交于 2020-08-24 10:19:29
问题 I have a project ( PROJECT_A ) that is triggered through a webhook, and expects the variable $PRODUCT to be set. Its value is used to trigger a certain path in the build. The job in the .gitlab-ci.yml file looks like this: deploy: stage: publish script: - ./generate_doc.sh $PRODUCT A webhook call looks like this: http://<GITLAB_URL>/api/v4/projects/710/ref/master/trigger/pipeline?token=<TOKEN>&variables[PRODUCT]=<PRODUCT> I call this trigger through a webhook from other projects, including

How can I test async callbacks in JMeter?

时间秒杀一切 提交于 2020-07-19 07:05:46
问题 I am using WebHooks in my API. So, once a request is processed our REST Service will POST a response back to the callback URL sent in the request. Client Server |(request) | |----------------->| |<-----------------| || | (response)| || | | _||_ Time | (callback)| \ / |<-----------------| \/ |----------------->| |(response) | | | How can this be stress tested with JMeter? 回答1: It depends on WebHook implementation, if it is a matter of polling - you can just use While Controller to wait for

Getting 400 Bad Request Error for MSGraph's create subscription api [Error Code - ExtensionError]

自作多情 提交于 2020-07-08 00:45:31
问题 Trying to create a subscription to get a channel for msgraph one drive notifications for file creation/upload. I am hitting the URL - https://graph.microsoft.com/v1.0/subscriptions with proper headers and the following body - { "changeType": "updated", "notificationUrl": "https://xxxxx.xxxxxxxxx.com/zzzz/qwertqwert", "resource": "/users/{user-id}/drive/root", "expirationDateTime": "2017-02-18T19:49:40.000Z", "clientState": "justsomerandomstring" } I am getting the following response : 400 Bad

Getting 400 Bad Request Error for MSGraph's create subscription api [Error Code - ExtensionError]

点点圈 提交于 2020-07-08 00:45:06
问题 Trying to create a subscription to get a channel for msgraph one drive notifications for file creation/upload. I am hitting the URL - https://graph.microsoft.com/v1.0/subscriptions with proper headers and the following body - { "changeType": "updated", "notificationUrl": "https://xxxxx.xxxxxxxxx.com/zzzz/qwertqwert", "resource": "/users/{user-id}/drive/root", "expirationDateTime": "2017-02-18T19:49:40.000Z", "clientState": "justsomerandomstring" } I am getting the following response : 400 Bad

HTTP POST Google Cloud Functions NodeJS

戏子无情 提交于 2020-07-07 06:02:42
问题 How do I write a Google Cloud Function that will receive a HTTP request and then send a HTTP POST request to a different endpoint? For example, I can send the HTTP trigger to my cloud function (https://us-central1-plugin-check-xxxx.cloudfunctions.net/test). I am using exports.test = function helloWorld(req, res){} to process the data received. And then I want to send the processed data with a HTTP POST request to a different endpoint. By far I have tried sending HTTP POST with node-webhooks,

How to use Google Apps Script to get POST request from Stripe webhooks

有些话、适合烂在心里 提交于 2020-06-29 05:23:08
问题 I am trying to get POST request from Stripe webhooks into Google sheet, in order process sales data in Google apps environment. I set up a web app by Google Apps Script, and try to test the webhook using testing function of Stripe. I chose "invoice.payment_succeeded" as the event type to test. My code is as follow: function doPost(e) { var jsonString = e.postData.getDataAsString(); var event = JSON.parse(jsonString) var ss = SpreadsheetApp.openById("XXX"); var sheet = ss.getSheetByName("XXX")

Create a webhook using API in shopify

寵の児 提交于 2020-06-27 16:19:01
问题 Here I stuck in shopify creating webhook through API I am using cake php for creating public shopify app Now I would like to create carts/update hook for my app using API here is my code Cake php library : https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin File : ShopifyApiComponent.php CODE : public function createwebhook($shop_domain, $access_token){ $method = "POST"; $path = "/admin/webhooks.json"; $params = array("webhook" => array( "topic"=>"carts/create", "address"=> $this->site_url.

Create a webhook using API in shopify

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 16:18:48
问题 Here I stuck in shopify creating webhook through API I am using cake php for creating public shopify app Now I would like to create carts/update hook for my app using API here is my code Cake php library : https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin File : ShopifyApiComponent.php CODE : public function createwebhook($shop_domain, $access_token){ $method = "POST"; $path = "/admin/webhooks.json"; $params = array("webhook" => array( "topic"=>"carts/create", "address"=> $this->site_url.

Webhook Error: Issue while integrating Github with Jenkins

喜你入骨 提交于 2020-06-01 05:29:05
问题 There was an error setting up your hook: Sorry, the URL host localhost is not supported because it isn't reachable over the public Internet. While adding webhook getting this error. 回答1: You are using a local ip address. If you run ipconfig or ifconfig, you see the "local" ip address. Github needs your public ip address. For example go to https://whatismyipaddress.com/ and it will show your public address. If you're running Jenkins on localhost:8080, then Github needs http://myPublicIP:8080

Trigger webhook when Google Sheet edited

我与影子孤独终老i 提交于 2020-05-26 06:26:22
问题 I made a google sheet for sharing todo list with co-workers. My hope is when that sheet is modified, send message to slack channel. Even if tried to find api related with this, I failed to suitable one. Is there a appropriate API or webhook? 回答1: There's Drive API's Push Notifications which lets you watch for changes to resources. You can also use Apps Scripts' onEdit trigger which acts more like a real-time checker. function onEdit(e){ // Set a comment on the edited cell to indicate when it