How can I get notifications from Mailchimp's webhook API when I import contacts? - mailchimp

I wanted to synchronize my contacts from mailchimp to my app.
I did this by periodically asking Mailchimp if any contacts were updated or created .
Now, I want to do it using the Mailchimp's webhooks.
I have created a webhook in mailchimp and tested it and it works well when I do some changes as Admin using the Mailchimp UI, but when I add or update any contacts using import contacts functionality, I don't receive any notifications.
Mailchimp's webhook API says that they send notifications only when a change is made
by a subscriber
by an account admin
via the API
so, since I'm not getting the notifications I used to get using the previous method, is changing to webhooks a bad option?
Is there any way that I could get the notifications I used to get from my old method, using Mailchimp's webhooks?

Webhooks may have been omitted from imports to try and protect users from inadvertently DDoSiNg the hook destinations on large imports.
In regards to keeping these two data sets in parity, because webhooks don't have a trigger for import events, I might first suggest exploring another update method for adding subscriber data to the list in MailChimp.
Perhaps looking to the Batch operation options in MailChimp's API:
http://developer.mailchimp.com/documentation/mailchimp/reference/batches/
http://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-batch-operations/?utm_source=mc-api&utm_medium=docs&utm_campaign=apidocs&_ga=1.112643975.2008383502.1487629834
As this should allow large updates while keeping the external app abreast of any updates via the triggered webhooks.

Related

How to be aware of the creation of a new event in a google calendar? [duplicate]

I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.

Folder.Bind() Stuck when using Subscriptions for multiple accounts through EWS Managed API

I am using a streaming subscription (EWS Managed API) to subscribe to events on one mailbox. Now, instead of doing this directly, I want to subscribe and take action on incoming mails on these mailboxes through impersonation.
How to achieve it?
What I have Tried:
I did setup multiple streaming subscriptions using service.ImpersonatedUserId() but when i get a event(i get events successfully for the 2 mailboxes i have subscribed to) and try to take some action for e.g EmailMessage.Bind(Item Id) or Folder.Bind(), the code stucks! I dont get any error message. I even tried TraceEnabled= true, I found nothing!
I did see this MSFT link but didn't find an answer.
I need help with for e.g moving the mail to another folder for multiple mailboxes through EWS subscriptions.
The default concurrent connection limit in .net is 2 by default https://learn.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.defaultconnectionlimit?view=netframework-4.7.2 because Streaming notifications require a concurrent connection to work this is a common issue.So all you should need to do is set the connection limit higher eg
System.Net.ServicePointManager.DefaultConnectionLimit = 100;

Add unique key of my own to slack event requests

I created a slack app with distribution (multiple clients)
and I subscribe to events several events like a message posted in a channel.
Beside the team_id field for identifying the client team - is there an ability to put my own key for a client?
Thank you.
No, Sack does not store any custom data for you. Its your job as an app developer to store all team related information for your app and link it to the Slack team_id. This is usually done with a database.
You can however include custom IDs with Slack requests, e.g. in the response you get from an interactive message. See this answer for more details on how this works.

Google Calendar event Created/Updated/Deleted Webhook?

I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.

Service that allows customised content newsletters

I am currently looking at building a web app that allows a user to sign in and receive a list of their tweets from the previous week in an email this information will be stored and pulled in from a db
Now at first I thought I could use something like postmark but this is apparently only for transactional emails and not bulk newsletters. I guess mine would be a newsletter as it would send to lots of people at the same time every week. But my question is how could I use a service like mailchimp that would allow completely customised content for each recipent? Is this possible with a service like mailchimp or campaign monitor?
If you want customized content per subscriber in the one email campaign (dynamic content), MailChimp is the way to go. Campaign Monitor has yet to implement that functionality.
Another option if you're a developer is to use Sendgrid.

Resources