mailchimp audience not updating - mailchimp
I am making a call to the mailchimp api. I receive the following response however when I go into the mailchimp website and check under Audience the subscriber number stays the same.
string(3301) " {"id":"0e60c7e290c13409000f350611460a2a","email_address":"patryk#icloud.com","unique_email_id":"fdec69b169","web_id":243007630,"email_type":"html","status":"pending","merge_fields":{"FNAME":"","LNAME":"","ADDRESS":"","PHONE":"","BIRTHDAY":""},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"66.251.171.98","timestamp_signup":"2019-12-03T18:45:22+00:00","ip_opt":"","timestamp_opt":"","member_rating":2,"last_changed":"2019-12-03T18:45:22+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"source":"API - Generic","tags_count":0,"tags":[],"list_id":"925932a4f9","_links":[{"rel":"self","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a","method":"GET","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Response.json"},{"rel":"parent","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members","method":"GET","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/CollectionResponse.json","schema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/CollectionLinks\/Lists\/Members.json"},{"rel":"update","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a","method":"PATCH","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Response.json","schema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/PATCH.json"},{"rel":"upsert","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a","method":"PUT","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Response.json","schema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/PUT.json"},{"rel":"delete","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a","method":"DELETE"},{"rel":"activity","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a\/activity","method":"GET","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Activity\/Response.json"},{"rel":"goals","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a\/goals","method":"GET","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Goals\/Response.json"},{"rel":"notes","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a\/notes","method":"GET","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Notes\/CollectionResponse.json"},{"rel":"events","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a\/events","method":"POST","targetSchema":"https:\/\/us4.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Events\/POST.json"},{"rel":"delete_permanent","href":"https:\/\/us4.api.mailchimp.com\/3.0\/lists\/925932a4f9\/members\/0e60c7e290c13409000f350611460a2a\/actions\/delete-permanent","method":"POST"}]}" {"status":"success"}
The status of the request was pending. Pending subscribers are not shown in the mailchimp dashboard.
Related
Message sent by Microsoft Teams bot is not displayed in the conversation
I have tried to send MS Teams bot message request via rest api: End point: https://smba.trafficmanager.net/ca/apis/v3/conversations/{conversation id}/activities {"text":"test","type":"message"} And got empty response: {} The message i sent did not appear in the conversation. Any idea where i could have misconfigured? It is possible that trustServiceUrl needs to be run before a message is sent, i can't find equivalent rest api to call.
You definitely do need call trustServiceUrl before sending the message. In addition, you need to have additional properties on your activity, like the destination user or tenant id. Please refer to the documents on this, and good starting places are here and here.
Laravel events no response body returnd to Stripe
After successful purchase is made on my website, stripe fires a webhook to finalize the transaction. What is happening is I am firing 2 laravel events: Send email confirmation of order to the customer Send email notification to admin of site alerting them to the purchase. If I just fire the event to send email confirmation to customer, the stripe webhook is successful. When I add the notification to admin, Stripe advises that the HTTP Status Code has timed out that there was no response body and the web hook fails, even though all the emails were sent correctly. And what will happen is stripe will attempt to refire the webhook which is not what I want. Has anyone experienced this issue?
#DelenaMalan is correct, once you receive a Stripe webhook event you should immediately acknowledge receipt by returning a 200 response and then handle your business logic like sending emails afterwards. See https://stripe.com/docs/webhooks/build#return-a-2xx-status-code-quickly
Slack API for deleting Incoming Webhook
I have followed the process for using Slack Incoming Webhooks to post messages to channels successfully as per https://api.slack.com/messaging/webhooks. However, I could not find an API to delete a specific incoming Webhook. I can delete a specific webhook from the web UI if I go to the Slack App page so the API has to exist. Can someone please point me to the right API ?
Outlook API - Getting Webhook Notifications With Data
I've configured Outlook Webhook notifications according to the instructions here. And I now receive notifications when an email arrives to Outlook inbox. I don't see any data regarding the E-Mail that was received. For example, I expected the ResourceData to contain the senders mail, subject, etc. What should I do to resolve the E-Mail metadata in the hook response? Thanks!
ResourceData contains the Id property. Just use it to get the message.
Office365 Outlook REST API's for approval/rejection of messages by moderator
In a recent post (How to retrieve ItemAttachment contents from Office 365 REST API?) API mentioned to retrieve attachments from within an attached EML is in plans. Is such API already available? In case of mail flow rule to send a message to a moderator. Approval mail is sent to an approver with the original mail attached as eml. Is there an API to approve/reject the message, similarly to the web buttons approve/reject? Thank you very much.
We were also looking for an answer to (2), but even now, apparently this is not possible via the REST API. There's one SO link that has a powershell script that claims to do this - see Approve email message via exchange EWS API, however, I don't see a clean solution yet.