How to pass email address to webhook from MailChimp - php

I am building a web app in PHP that subscribes and unsubscribes members from a MailChimp list via the API.
What I'm trying to add (and having extreme difficulty with) is use the MailChimp web hook features to pass the email address of someone that has unsubscribed through MailChimp to the hook that I have created on my app to that it will then update the database.
The app expects to receive the below URL to update the database
domain.com/includes/mailchimp-update.php?email=mail#domain.com
I am unsure as how to get that from the MailChimp web hook, and cannot find anything on here about it or on MailChimp, and their live help was not that helpful.

Just in case anyone else is struggling with this, here is how I resolved it.
Using the mailchimp webhook passes an array of data via POST. To pull the email address from the array, simply use.
$email = $_POST ['data']['email'];

Related

Link Paypal Html Script and webhook

I am using the Paypal Subscription Button Html and Script provide by paypal. Now I wanted to link with paypal webhook. I want to track the events like BILLING.SUBSCRIPTION.RENEWED and BILLING.SUBSCRIPTION.CANCELLED.
Is this possible without using the App keys? When I created the App , I created with the same paypal-id so, that means my all webhooks in app is going get render when subscription event take place, without attaching any keys with it ?
Anyone there who can solve my query?
In order to receive Webhook events, you need to first subscribe to them.
For information on ways to subscribe to Webhook events for an application, see the PayPal documentation here.
It can be done via an API call, or via the Developer Dashboard.

Paypal REST API: How can I get authenticated users email/name without using the Identity API?

So it seems like https://developer.paypal.com/docs/api/identity/v1/ only works if you're using Connect with Paypal API. This isn't an option at the moment. I have a Paypal widget within my dashboard and users can add multiple accounts. I need an email or name to help my users distinguish this account from their others. I tried using /userinfo but I only received the user_id property.
Is there something I can do differently to get email/name from this endpoint or is there somewhere else I can get this data? This workflow is best for users but if needed I can have them manually enter the info on my application
What ended up working for me was making sure all permissions per enabled and I added my return URL. I was doing this to setup connect with paypal button but then tried a postman request and realized I could now get all user info needed

Is it possible to send an email to a list of users using Marketo API and PHP

I've got a Drupal website and I'd like to send an email via Marketo whenever a new post is created. I've got the Drupal side of things covered (I know how to create the custom module that will be triggered whenever a new content us created).
What I don't know is whether:
1) Marketo API allows for this?
2) How? As when I was trying to follow this tutorial, I got stuck on the $clientId and $clientSecret as these values are now available under Integration/LauchPoint nor in Integration/Web Services
Thanks!
You should have an admin account or something. http://developers.marketo.com/documentation/rest/custom-service/
Here is how you can obtain your client id and secret

Using Mailchimp API with Shopify

I am attempting to use the Mailchimp API to allow site visitors to subscribe to my newsletter. Currently, any signups with the default form action that Mailchimp provides sends an Opt-In email and opens a new email to say thanks for subscribing, which I want to avoid. Instead, if I use the API, I can set those options to false. The problem is that it doesn't look like Shopify allows PHP or Ruby in their shop code. I've been looking for weeks for a solution, but I'm at a loss.
Here is a turnaround for this:
1.- Create a Wufoo form with one only field: email address.
2.- Paste this Wufoo form at your Shopify store. We'd recommed pasting the JavaScript version.
It can look like this
3.- On your notifications tab at your Wufoo form, choose to Send notifications to Another Aplication. On the dropdown, choose MailChimp click on Add integration and follow steps. You will be sending all email addresses to your desired MailChimp list.
Tiny problem is that placeholders on Wufoo forms, don't disappear on click, so the user needs to go inside the field and delete all the placeholder. (This might be a good point because robots can't do this, and you make sure the user is really involved in the process of typig his/her email address.)

How to create infusionsoft plugins that will communicate with mongoosemetrics APIs?

I am a senior PHP developer, but I'm newbie with Infusionsoft. My client has the requirements below:
Create a plugin in Infusionsoft to trigger an event at the time of affiliate registration with a affiliate traceable phone number via Mongoose API.
Create a plugin in Infusionsoft to trigger an event at the time of affiliate login which will send a affiliate traceable phone number via Mongoose Metrics API and send a response with call details/statistics to the Infusionsoft server.
I actually do not where and how to create a plugin in Infusionsoft and how to call Mongoose Metrics API in it.
Can anybody please give me step-by-step info if possible so that I can work through this faster?
If you are using a webform for your affiliates to signup you can have Infusionsoft send a POST with the information the affiliate used in the form to a script which would add the number to mongoose api.
If you are manually creating affiliates inside infusionsoft then there is no automatic listener to send the information, a post would have to be setup in an actionset and run manually on the affiliate's contact record. If you are not familiar with action sets you can read about them here
As far as the second plugin there is no way to run an action when an affiliate logs in. You might be able to do some magic if you find a way to add HTML/Javascript to the affiliate login page and send that information to your server. However, that is a very ugly way to do it.

Categories