Microsoft Teams Incoming Webhook is not working with BambooHR Webhook - rest

I configured an incoming webhook for my Teams channel and also configured BambooHR webhook with Teams incoming webhook URL to post data to the channel. Even posting data from different places is working well, it is not working for BambooHR webhook. Why this problem occurs and how can I fix this?

Microsoft Teams Incoming Webhook accepts only one format and it is below. Whatever you need should be the value of the text.
{ text:"" }
None of the other formats is valid for it, that's why BambooHR Webhook did not work. I wish they had a proper JSON format.

Related

Custom messages for Github Slack integration for issue tracking

Is it possible to customize the messages that github will send to the slack webhook? I was able to set it up to where I get notifications whenever an issue is created/deleted/edited, however I would like to only get notifications for specific issues with a certain label and also be able to change the format of the notification.
With this level of customization, you will likely need to write a bit of custom code that:
Receives and authenticates the Github webhook. This means you need to host the code someplace as a web service, for example in Heroku.
Filters down to only the events that matter to you with the custom criteria you listed above.
Formats a custom Slack message in markdown based on the payload of the Github event.
Posts that message to Slack - probably the simplest solution is to use the Slack incoming webhooks.
(Disclosure: I am the co-founder of Fusebit). Fusebit automates such integration scenarios and allows you to focus on the parts that matter to you, which in this case is the custom filtering and custom message formatting code.

Using outlook rest notifications api

I created a function in azure functions that is triggered by http request.
Also I have a web app that used for clients to subscribe to my app.
My app and web app is written in .net.
My goal is to set a subscription button in the web app, so when the user subscribe it would allow me to get push notifications about new mail in his outlook inbox folder and send http requests to my azure function that includes the content of the newly received mail.
I read the doc about this API but couldnt understand it and what should I do to get my goal. Also I didn't find any examples for this.
How can I achieve my goal?
There are two options you can try for your scenario :
Option 1: you can create Function APP with Outlook connector and Microsoft flow ( you can listen for new emails using Office 365 API -> "When New Email arrives" and also can be posted the payload using http trigger function
Option 2:
Creating Push notification in your app when you received, you can push the payload to
Azure by a wehbook using Webjobs or Functions
Documentation Outlook REST API V2.0 : Push Notification
To play around with REST API use this URL :https://oauthplay.azurewebsites.net
good luck

How to add the commit's description to the discord webhook bot messages?

I followed this tutorial to create a Webhook between Github and Discord.
https://support.discordapp.com/hc/en-us/articles/228383668
Everything worked as expected and the bot is updating the chat just fine.
Despite searching in the Docs
( https://discordapp.com/developers/docs/resources/webhook ), I
could not find how to configure the bot so it also displays the commit's description.
I don't really know if this is possible, can someone point me how to handle this?
The Discord GitHub webhook does display the first line of the commit which git typically treats as a summary.
The GitHub push webhook publishes a json document containing fields such as head, refs, and a commits array with fields such as message and author.
However, the default Discord webhook expects a simpler json document with just a content field for the message body. This webhook will reject a GitHub push document.
However Discord also provides a special GitHub webhook that understands the payload of the GitHub push webhook. You've set this up but as noted only displays the first line of the commit. There doesn't seem to be any way to customize it.
If you want to display the full commit message, you'll need a custom bot that can receive the GitHub push event, format a new json document in the form expected by the default Discord webhook, and send it to the Discord API.
There is already an app that does this. The developer has abandoned it in favor of the official Discord GitHub webhook but left it running for now. It's easy to integrate and it does display the full commit message. It does require a public GitHub repository however.

PayPal REST Webhooks sending no data

I'm trying a simple enough task, just to get PayPal's webhook to send data. So I'm sending various events through from developer.paypal.com's webhook simulator, which is successfully contacting the server, but which is sending blank data. The code to check what data is sent is
$mysqli->query("INSERT INTO paypal_webhook_tests (`datetime`,`data`) VALUES ('$datetime','SOMETHING PASSING THROUGH')");
foreach ($_POST as $key=>$val){
$store = $key.$val;
$mysqli->query("INSERT INTO paypal_webhook_tests (`datetime`,`data`) VALUES ('$datetime','$store')");
}
What ends up happening is that there is nothing in POST at all. What's going on with this?
You could potentially use https://requestb.in/ for creating a request inspector, that could be used as a URL for webhook simulator. This will allow you to make sure you are getting the expected data. Once you are able to confirm that, you should be able to figure out why data is not seen in your webhook URL.

How can I get my data from sendgrid?

I am using sendgrid api to send various email(s) my user(s). At sendgrid portal they have give us statistics in a limited way. I can't search my queries as i want. thats why I want that data in my own database. so, I can query as per my need.
My question is, Is there any way to get data/statistics my of account? any service of sendgrid which is provide my data?
thanks
If you enable our event webhook, your application can consume all the data/statistics itself and store that in your db. So for example, SendGrid will post info on the following types of events back to your site (Processed, Dropped, Delivered, Deferred, Bounced, Opened, Link Clicked, Marked as Spam, or Unsubscribed)
You can get more info on our event webhook here:
Event Webhook Docs
Those docs show examples on the data we post to your site as well as the parameters we send for each type of event.