I'm trying to figure out a way to add a new contact to a contact list on Sendgrid when a user submits a form on my Wix website.
I have set up an automated email that gets sent from Sendgrid when someone submits a form on my site. The person submitting the form will get a confirmation email saying that they have been subscribed. This part is working fine!
However, I would also like this user's email address to be added to a specific contact list on Sendgrid, and I can't seem to figure out how to do this. Does anyone have any experience with this type of thing?
I have found some documentation here that provides some code examples of how to achieve this, but so far I have had no luck implementing it, and I keep getting code errors. https://sendgrid-marketing-campaigns-beta.api-docs.io/v1/contacts/add-or-update-a-contact
If any one can point me in the right direction I would be very grateful!!!