Anybody know if it's possible to add email addresses to the notification list for Azure API Mangement via a REST API? Specifically, I would like to be able to add to the "Approaching subscription quota limit". I see that there's a way to do this in the UI, but I'm looking for a way to do this via REST call or PowerShell commandlet (if possible).
The docs are still in progress, and stuff might change a bit, but in short:
GET /notifications - get list of all notifications in system
GET /notifications/{nid} get single notification
GET /notifications/{nid}/recipients - get list of recipients for single notification
GET /notifications/{nid}/recipients/emails - get list of email recipients subscribed to notification
GET /notifications/{nid}/recipients/users- get list of user recipients subscribed to notification
GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/emails/{email} - get/manage single email recipient
GET/HEAD/PUT/DELETE /notifications/{nid}/recipients/users/{user} - get/manage single user recipient
I just got a response from Microsoft. It turns out that it's only possible to add email addresses to the notification list by UI at the moment.
Related
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
I know that I can setup a webhook, then as soon the event happens (user open email, spam, etc) SendGrid will call that webhook. but if for some space of time the webhook is down, how to retrieve events for example for an specific sg_message_id?
I have looked at the documents but I can't find a sample call to do this
SendGrid doesn't have message-level API GET, just the Push-based Webhook. You can review the Activity page for short-term event lists.
I'm trying to send email notification to customer after ticket is created with OTRS rest api. I know that it's impossible only with api so I created notification that reacts on TicketCreated event. My problem is email recipent. Notification is working on hardcoded email but I want to send notification to customer from ticket. When I'm selecting "customers" in recipent groups it's not working for tickets from api. But it's working for tickets created in web interface - result is that customer receive 2 emails - one original and one from notification. What I'm doing wrong? How to set customer with api? Below is my request
{
"Ticket":{
"Title":"REST Create Test",
"Type":"Unclassified",
"Queue":"Raw",
"State":"open",
"Priority":"3 normal",
"CustomerUser":"customer.email#gmail.com"
},
"Article":{
"Subject":"some subject ",
"Body":"nice body",
"ContentType":"text/plain; charset=utf8",
"From":"otrs#fancy.company"
}
}
Even if no customer found in backend passed via web service, notificator will try to send mail to first mail sender - "customer.email#gmail.com" in your case.
Keep in mind that NotificationEvent is transactional by default, so it works in TicketObject destructor.
So reasons are:
Destructor is not called (for example inside of scheduler tasks). In this case you must call destructor manually.
More likely that ticket attributes have been changed after calling TicketCreate. So when destructor is performed, one of your notification attributes (Queue, Service, etc.) doesn't match ticket attribute.
I have got same issue. Don't know why. I created ticket successfully via rest API.
Finally I got solution to fix it. Just modify or create new event in "Ticket Notifications". Add event create ticket and set ticket filter is "open", "close" image
When the order status of an order in Bigcommerce is changed, it sends out an email using the template order_status_email.
I want it to send out 2 emails when this happens. (that default email, and another custom email template)
Is there a way to use the API or customize my store to send out an custom email when the order status is changed?
You'd have to set up your own system to send out the email, but you can access order statuses through the API no problem. Docs can be found here: https://developer.bigcommerce.com/api/objects/v2/order_status
I'd recommend working with the webhooks feature, it'll make this a lot easier.
https://developer.bigcommerce.com/api/webhooks
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.