Skip to content

Conversation

@AbM7797
Copy link

@AbM7797 AbM7797 commented May 12, 2022

No description provided.

@AbM7797 AbM7797 requested a review from jain-raunak as a code owner May 12, 2022 16:23
@canardaaydin
Copy link

waiting for this for to be merged

@jain-raunak
Copy link
Collaborator

waiting for this for to be merged

Hi @canardaaydin
Sorry for the delay, please create a branch from this project and use it. Meanwhile we are working to upgrade this project with all the changes and fixes.
Apologies for the inconveniences!

@iwittkau
Copy link

Intermediate fix:

func toInterfacePointer(i interface{}) *interface{} {
	return &i
}
headers := make(map[string]interface{})
// add headers
var msg lib.SendSmtpEmail
msg.Headers = toInterfacePointer(headers)

@LandazuriPaul
Copy link

LandazuriPaul commented Jul 7, 2022

This has been fixed with #30. The PR also fixed the incompatible go module situation.

So to upgrade to the latest fixed version, replace your imports with github.com/sendinblue/APIv3-go-library/v2 (the v2 suffix is key) and install the v2 with:

go get -u github.com/sendinblue/APIv3-go-library/v2/lib
go mod tidy

@jain-raunak
Copy link
Collaborator

This has been fixed in the latest version. Also to upgrade to the latest fixed version, replace your imports with github.com/sendinblue/APIv3-go-library/v2 (the v2 suffix is key) and install the v2 with:

go get -u github.com/sendinblue/APIv3-go-library/v2/lib
go mod tidy

Hence, closing the PR.

@jain-raunak jain-raunak closed this Oct 3, 2022
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

Successfully merging this pull request may close these issues.

5 participants