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
Related
Is it possible to have a Slack bot that passes information to and from a Bubble app, such that replying to the bot serves as data input for the database, and the bot can retrieve information from the database to answer queries in the Slack channel. Possibly with Zapier?
Reading the info on Slack website about how to build a slack bot: https://api.slack.com/authentication/basics
Knowing Bubble has a database to store and retrieve data AND can receive API calls (webhooks) and call API's it should be possible to use Bubble and Slack to create a functioning Slack Bot.
Currently I'm programming my own app which communicates with TFS which is owned by my university through Azure DevOps REST API 5.1. I'm trying to accomplish my own frontend client which will display and handle project board with a lot of work items. I know how to create, update, get, etc... work items through REST API but now I'm trying to accomplish live updating board. That means if somebody else change something in the board, the changes are displayed immediately also on my instance of client.
Is this accomplished by websocket communication? If not what else is used? I saw that app's on azure devops has websocket functionality, but i have no idea how do i connect to websocket on backend.
I found something called SignalR service, some research about it needed.
Thanks for help!
P.S. I'm not from english speaking country so i'm sorry about my english.
You can check out the service hook and create web hooks in tfs. The web hook can be triggered by multiple workitem events(Work item created/deleted/restored/updated) to send a JSON representation of these events to any service. So that you can accomplish live updating board.
1, First you need to write these endpoint services in your app to receive these posts triggered by the work item events.
2, Create webhook in tfs. Go to Project Settings-->Service hooks-->Create subscription-->Select Web Hooks
Select a Trigger event(eg. work items updated)-->Enter your service endpoint url and other information.
So that when a work item is updated in tfs board. The web hook will be triggered immediately to send out a post to your app service. Then your app service can process the received post and updated the changes on your instance of client.
I am learning the facebook api and I am curious how to do this.
On this website(https://botacademy.com/), they use manychat and you can click the opt in button (on web) and it automatically accesses your messenger inbox without prompts or auth.
It then sends you a programatic message. All of the tutorials I follow require the user to send a message first..
Do you know what endpoint of the API they are using to accomplish this?
Obviously I do not know what their code looks like, but:
that is a send to messenger button, which allows you to authenticate with a bot and an app, and sends your information to the webhook.
This counts as interacting with the bot, because you clicked the button and opted into the experience.
FBM Platform Policies have this to say about opting into messages and send to messenger:
How messaging is triggered:
...
Person requests a message from a business via a plugin, such as Send to Messenger
My company was using a third party tool to download print jobs from Google. This has developed problems so we've written our own. We can register a printer, get notifications via XMPP and download jobs. All good. We'd like to download jobs from the printers already registered via the the third party tool.
We have successfully got the permission of the google account that owns the printer to manage its printers and subsequently downloaded jobs from the printer. This was achieved using a solution that issued /fetch api calls every minute. Of course, Google wants the XMPP method used so we tried to do that. After getting over an authentication issue by adding googletalk to the scope in the oAuth request we fail to get any notifications.
In summary, with our own printer we can fetch, download and get XMPP notifications but with the printer registered with the third party tool (where we don't know the client id and secret but do know the google account) we can fetch and download but not get XMPP notifications. Is there any way round this?
The XMPP messages go to the robot account that owns the printer, so I don't think you should expect to receive XMPP messages without that robot account (and corresponding XMPP JID).
Rather than work around the intentions of the API, I suggest you work with the third party. Maybe they can provide hooks into their notification queue?
I'd like to implement some push notifications from Twitter in my app. I can connect to Twitter's stream of user-related events using Sreaming API. Do I need some 'middleman' server between Twitter API and an iPhone app in order to push a notification to an app ? Maybe I can do it using Parse.com Cloud Code or something similar ?
This question may be helpful not only in the case of the Twitter API but also in case of any server that a developer don't have any access to.
To push a notification you would generally need a server of your own which has been configured to send a notification when some event occurs. If you are using Parse as a backend for your app, you can leverage their backend to allow you to implement Push Notifications or use a service like UrbanAirship
In the case of the Twitter API, you will need to implement some middleman in either case to get the data from Twitter for your user and parse it to see whether some event has occurred and then send off a notification either using your own custom logic directly to Apple's servers or using Parse or UrbanAirship (or some other service)