Giter Club home page Giter Club logo

Comments (5)

adamyanliev avatar adamyanliev commented on August 16, 2024 1

Hey @Jolg42 ,

I understand your point, however there are several considerations to take into account here. These are the main factors behind this limitation on Mailjet:

  • Maintaining proper deliverability and engagement stats linked to the email address they were sent to. This helps identify possible issues with deliverability to certain domains, for example.
  • The email address is used as an alternative access key to a number of resources, so allowing an email change may cause various issues.
  • Varoius security concerns - e.g. it'd be possible to switch the emails of two different users.

With further development some of those concerns may be allayed, but for now there are no plans to include an email change functionality for a contact ID.

About adding metadata - this is not possible with POST on /contact. However, there are a couple of other options:

  1. If the contact needs to be added to a contact list ID, you can use the /contactslist/{list_id}/managecontact endpoint. See here for a code sample.

  2. If you do not want to add the contact to a specific list, you can use /contact/managemanycontacts instead. Since the ContactsLists object is not mandatory, and you are allowed to add a single contact in Contacts, you can use it to add one contact with its metadata into your global list. See here for a code sample.

Hope that helps :)
Atanas

from mailjet-apiv3-nodejs.

kmanchikov avatar kmanchikov commented on August 16, 2024

Hey there,

Changing the email address of a contact isn't the best way to tackle this problem. Furthermore we do not provide a way for now to change the email address for a certain contact. I would recommend creating a new entity (contact) with the new email address of that user.

Let me know if you do have any other questions or concerns, as I would be glad to look into those as well.

Best,
Krassimir

from mailjet-apiv3-nodejs.

Jolg42 avatar Jolg42 commented on August 16, 2024

Hi Krassimir,

The main problem here is that I have metadata associated to that user in Mailjet...
So updating the email would be way easier!

Because retrieving the metadata, creating & deleting is just too much 😞

Also the API is not clear, can we add metadata (if they are already defined) with a POST on /contact?
Because creating the contact and then doing a PUT on /contactdata is again one more step.

from mailjet-apiv3-nodejs.

Jolg42 avatar Jolg42 commented on August 16, 2024

Thanks @adamyanliev I can understand these points, however I had a hard time finding your code example, it looks like the link https://dev.mailjet.com/guides/?javascript#create-contact-and-subscribe-at-once doesn't scroll really well to the anchor.

On Firefox:
screenshot 2018-07-24 at 14 27 50

On Chrome:
screenshot 2018-07-24 at 14 28 59

It works if I paste it a second time in the URL bar ... 😄

screenshot 2018-07-24 at 14 31 21

from mailjet-apiv3-nodejs.

adamyanliev avatar adamyanliev commented on August 16, 2024

Yeah, there are some issues with the top menu, since it loads slower than the rest of the page, so when you're redirected in Chrome initially. you're pointed to the right anchor, but the menu hides the top 100 pixels from the guide. With Firefox it seems there are issues with redirection to lower level headings.

In any case, we'll look into those issues. Thanks for letting us know :)

Atanas

from mailjet-apiv3-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.