webhooks

Retrieve stripe data from stripe webhook event

本小妞迷上赌 提交于 2019-12-30 09:47:33
问题 When implementing stripe webhook in java, I am successful in getting the event object in JSON format. The problem is I am not able to get the details like the amount, subscription_id, attributes which are in nested JSON. Getting these values from the class object is also not available. Could you please tell me how to extract these values public void handle(HttpServletRequest request) { Stripe.apiKey = sk_test_XXXXXXXXXXXXXXXXXXXX; String rawJson = ""; try { rawJson = IOUtils.toString(request

SHA256 webhook signature from WooCommerce never verifies

Deadly 提交于 2019-12-30 06:57:28
问题 I am receiving webhooks from a woocommerce site into a nodejs/express application. I am trying to verify the webhook's signature to prove authenticity, yet the hash I compute never corresponds to the signature that woocommerce reports in the hook's signature header. Here is the code I am using to verify the authenticity: function verifySignature(signature, payload, key){ var computedSignature = crypto.createHmac("sha256", key).update(payload).digest('base64'); debug('computed signature: %s',

How to get formId of leadgen webhook on facebook?

丶灬走出姿态 提交于 2019-12-25 09:06:27
问题 I have created webhook for tracking of leads on my facebook page. I need formId of lead but my logs shown as below. [field] => leadgen [value] => stdClass Object ( [ad_id] => 0 [form_id] => 2.6147643765585E+14 [leadgen_id] => 2.6356365078047E+14 [created_time] => 1491489109 [page_id] => 4.3192338381483E+14 [adgroup_id] => 0 ) [form_id] is shown like 2.6147643765585E+14 but actual formId is different.I think it is in encoded form right? How to get formId in decoded form, I mean original formId

Webhook notifications for Google drive changes not received

十年热恋 提交于 2019-12-25 08:21:47
问题 I set up webhook notification for my service account following the below steps Generated private key for my service account under IAM in developer console Added my callback domain under Domain verification in my application in the developers console Used the below code to register the web hook for my application java.io.File file = new java.io.File("/xyz.p12"); FileInputStream fis = new FileInputStream(file); PrivateKey serviceAccountPrivateKey = SecurityUtils.loadPrivateKeyFromKeyStore

Facebook bot not receiving messaging_game_plays webhook events even though webhook is subscribed to those events

筅森魡賤 提交于 2019-12-25 01:36:38
问题 I'm testing a facebook instant games app and want my bot to collect messaging_game_plays events to log user data at the end of a play session. I've set up an app page, app, and uploaded a build that I have moved to the testing stage. I also have a bot with a public webhook that I have successfully verified. The webhook is currently subscribed to messaging_game_plays as well as messages . I have simple echo functionality built into the bot and can spin up the messenger app on my phone, message

Webhook does not work to connect Dialogflow with PHP script

岁酱吖の 提交于 2019-12-24 19:29:18
问题 I am using DIalogflow (api.ai) to create chat interfaces. For now, I only have a simple intent called 'Name'regarding the question 'Who is name ?' which responds ' name is a great person'. The json output regarding this question from Dialoglow is the following: { "id": "...", "timestamp": "2018-03-20T12:38:27.972Z", "lang": "en", "result": { "source": "agent", "resolvedQuery": "Who is John", "action": "", "actionIncomplete": false, "parameters": { "given-name": "John" }, "contexts": [],

Accessing local https service from stripe webhook

元气小坏坏 提交于 2019-12-24 16:22:24
问题 I am integrating a payment system using Stripe. In the process, I need to test the webhooks in my local dev. machine before I ship it to QA. I have tried the following, Ultrahook: however when starting the ultrahook it said, authenticated <myaccount>, but did not give any "Forwarding activated..." message. When I tried to access the url from stripe or web, it did not work. Details below, local url: https : //localhost/xxx/yyy/zzz ultrahook command: ultrahook -k localhost https : //localhost

PHP Parse Json from HTTP response & Foreach Iterate Array

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:25:34
问题 There are several focused questions on this topic but after trying them all I felt the need to seek out help. I am using Sendgrid, their webhook sends a json response and for some reason I have been unable to figure out how to integrate with our CRM. Update: 12/3/2015 @ 1:01pm - I got some code to work (probably not the most efficient but it works) see below. Example JSON from Sendgrid being sent: [ { "sg_message_id":"sendgrid_internal_message_id", "email": "john.doe@sendgrid.com", "timestamp

JIRA: How to make a webhook fire for only a single transition, of a workflow?

你离开我真会死。 提交于 2019-12-24 12:22:26
问题 Scenario is : Git -> JIRA -> Jenkins A commit in Git, must change an issue status in JIRA, which in turn, should trigger a build for a job in Jenkins. Method Tried : I created a WebHook in JIRA. This webhook contains the URL for a Jenkins job. Attached this WebHook to a Work Flow in JIRA, as a post function . The workflow is a simple one. It says: [InReview]-->[InProgress]-(Aprrove)->[Done] The webhook is attached to the transition from [InProgress] to [Done] IssueKey and Issue-Updated has

Is it possible to use a file path instead of url as `image_url` when sending a message via Slack API or Incoming Webhook?

吃可爱长大的小学妹 提交于 2019-12-24 10:48:53
问题 Let's assume I have the following block which I want to send via Incoming Webhook to Slack { "type": "image", "title": { "type": "plain_text", "text": "foo bar" }, "image_url": "https://api.slack.com/img/blocks/example/beagle.png", "alt_text": "foo" } but instead of providing a http url as image_url I would like to provide a file path because the file I want to send is in the same folder as my script. 1) Is this possible? I guess no. 2) Is it possible to upload an image via files.upload in a