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

Make it possible to subscribe to the pro newsletter #8505

Closed
manon-corneille opened this issue Jun 2, 2023 · 7 comments · Fixed by #8856
Closed

Make it possible to subscribe to the pro newsletter #8505

manon-corneille opened this issue Jun 2, 2023 · 7 comments · Fixed by #8856
Labels
📨 Emails - Brevo 📨 Emails 🏭 Producers Platform - acquisition 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. ✅ Task

Comments

@manon-corneille
Copy link
Contributor

manon-corneille commented Jun 2, 2023

Story: #
Today, When a user creates an account on the Pro platform and ticks “Subscribe to the newsletter”, we do keep the info, but it's not used.
As we are now publishing a newsletter every couple of months from SendinBlue, it would be good to allow users to subscribe to it.

Part of

image
@manon-corneille manon-corneille added 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers ✅ Task 🏭 Producers Platform - acquisition labels Jun 2, 2023
@manon-corneille manon-corneille changed the title Make it possible to subscribe to the pro newsletter Make it possible to subscribe to the pro newsletter Jun 2, 2023
@stephanegigandet
Copy link
Contributor

We use Brevo (which used to go by the name Sendinblue) to manage newsletters.

Here is the documentation for the Brevo API: https://developers.brevo.com/reference/createcontact

@teolemon
Copy link
Member

Could this help ?
https://metacpan.org/pod/WebService::SendInBlue

@Ban3
Copy link
Contributor

Ban3 commented Jun 21, 2023

Could this help ? https://metacpan.org/pod/WebService::SendInBlue

It's for an old version (v2) of the API. Current is v3.

API v2 Deprecation Notice

On June 25th 2020 Sendinblue's API v2 started its official deprecation process. The sunset of the platform will be carried out through the current year and will be completely removed by *December 2022

It doesn't seem to have any functions for contact/campaign management anyway.

@stephanegigandet
Copy link
Contributor

Steps:

  • create a free plan on Brevo, and create an API key
  • create a contact list on Brevo, and get the list id
  • create a Brevo.pm module, with a function add_contact_to_list($list_id, $email, $username, $cc, $lc..)
  • create a brevo.t unit test, to verify it works, and to verify, we also need a function to get the list of contacts, or get one contact info
  • then use add_contact_to_list() in user.pl or Users.pm when a user creates an account

@stephanegigandet
Copy link
Contributor

Put the Brevo API + the Brevo list id in Config2.pm (not in GitHub) and Config.pm

Something we'll need to figure out is how to have a unit test that can run without a Brevo API key, one way is to mock the API responses (this has been done in other tests)

Copy link
Contributor

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts

@github-actions github-actions bot added the Stale label Nov 15, 2023
@teolemon teolemon added ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. and removed Stale labels Nov 24, 2023
@manon-corneille
Copy link
Contributor Author

I close this issue as the discussion moved to : #8856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📨 Emails - Brevo 📨 Emails 🏭 Producers Platform - acquisition 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. ✅ Task
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants