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

Events Not Supported #214

Open
ricky-sb opened this issue Dec 4, 2019 · 5 comments
Open

Events Not Supported #214

ricky-sb opened this issue Dec 4, 2019 · 5 comments

Comments

@ricky-sb
Copy link

ricky-sb commented Dec 4, 2019

I don't see any way to use the events endpoint.

Is there a way I can access the HTTP client and manually make the request?

@ricky-sb ricky-sb changed the title Events Not Support Events Not Supported Dec 10, 2019
@bramski
Copy link

bramski commented Apr 16, 2020

4 months ago. Is there an update on this? I in fact require this feature to complete some development work.

@bramski
Copy link

bramski commented Apr 16, 2020

@stephenross wondering why no contributor has commented here. Is a pull request needed to get event support going?

@charlesthk
Copy link
Member

@bramski thanks for your your reminder.
I won't have enough time to work on this quickly.
I you need this quickly, a PR would be very much appreciated, please follow the same patterns as others endpoint, and update Readme.md and Readme.rst accordingly with this new endpoint and update the package version to 3.0.14.
If your PR is ok I would publish it to PyPi.
Many thanks.

@ricky-sb
Copy link
Author

@bramski, if it helps, I ended up implementing this myself. Here's some sample code:

    url = f"https://us20.api.mailchimp.com/3.0/lists/{list_id}/members/{email}/events"
    payload = {
        "name": "referred_friend",
        "properties": {
            "count": str(ref_count),
        }
    }
    r = requests.post(url, auth=('[email protected]', 'apikey'), json=payload)

@bramski
Copy link

bramski commented May 5, 2020

Fixed by: #226

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

3 participants