Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Issue #29

Open
iemlanka opened this issue Sep 9, 2019 · 0 comments
Open

API Issue #29

iemlanka opened this issue Sep 9, 2019 · 0 comments

Comments

@iemlanka
Copy link

iemlanka commented Sep 9, 2019

I have written Script to process bounce from PowerMTA log files.
What's my script doing ?

  1. It extract campaign id , subscriber uid from bounce record
    My bounce address is [SUBSCRIBER_UID]-[CAMPAIGN_UID]@domain.com

  2. Catch bounce dsn from powermta log files and then split into soft or hard bounce.

  3. Using API call i will "Create a bounce " and it will update on mailwizz data base " mw_campaign_bounce_log "

  4. Mailwizz automatically mark " Hard " bounce as " Blacklisted ". So i never needs to do anything about that.

Summary

I use PIPE pmta logs and extract Campaign UID and Sunscriber UID from bounce address & bounce type and dsn. Then add bounce record using API call.

$response = $endpoint->create('CAMPAIGN-UNIQUE-ID', array(
'message' => 'The reason why this email bounced', // max 250 chars
'bounce_type' => 'hard', // hard, soft or internal
'subscriber_uid' => 'SUBSCRIBER-UNIQUE-ID' // 13 chars unique subscriber identifier
));

What are the issues that I have ?

  1. With this script it only possible handle single customer account. If i want to handle another user account then i have to replace that second customer API keys or have to create seperate script for him.

That means if i have 50 customers i have to host 50 scripts or have to edit it each time when they blast. It's difficult / impossible task.

What I tried ?

  1. I tried to use same API key for all customers. I edited data base and even i used same API key for each user it's not works reason i think it's due to // customer_id// on table "mw_customer_api_key"

What are the errors that i'm getting ?

  1. When i use customer A account API key and tried to process bounce for Customer B then i can see all the process runs and finally API reject " The campaign does not exist! "

What am i request ?

  1. Is there any way to get generate API key for user admin that we can handle each and every customer campaigns from it ? ( API key for backend ? )

  2. or How can i get import my data into table "mw_campaign_bounce_log" without using API ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant