sendinblue / APIv3-csharp-library

SendinBlue's C# library for API v3
MIT License
58 stars 26 forks source link

Create a contact and add it to a list #46

Closed ElliotCK1 closed 2 years ago

ElliotCK1 commented 3 years ago

Hello,

I am trying to create a contact from my website with C#. To do it, I followed the documentation on this page : https://developers.sendinblue.com/reference/createcontact Unfortunately, I have an error as you can see on the next screenshot : github_screen

The error is that the key already exists in the dictionnary. I don't understand this error because for me, this line is to connect my SendinBlue account with my website so of course the key exists...

If someone already had this problem or if anyone knows what should I do to fix the problem ?

Thanks

nghaninn commented 3 years ago

Duplicate of #43 look at @jap64's solution.

Alternatively you can always declare new apikey var configuration = new sib_api_v3_sdk.Client.Configuration(); configuration.ApiKey.Add("api-key", <<SendinblueApiKey>>); var apiInstance = new TransactionalEmailsApi(configuration);

amitsendinblue commented 2 years ago

Closing this issue as it's duplicate of #43