Hi @Yufan Wang,
You're correct that, as of now, Azure Communication Services (ACS) does not offer an official Go SDK for its Email capabilities. The supported SDKs are currently available for .NET, Java, Python, and JavaScript.
However, you can still integrate ACS Email into your Go application by directly interacting with the ACS Email REST API. This approach is fully supported and allows you to send transactional emails from your Go applications.
Since there's no Go SDK, the best path forward is to utilize Go's net/http
package or any preferred HTTP client library to construct and send HTTP POST requests to the ACS Email REST API. Authenticate your requests using the ACS Email access key or an Azure Active Directory (Azure AD) token, depending on your security requirements. Email - Send - REST API (Azure Communication)
Authentication Considerations:
- If you're using access keys, you need to include the
Communication-Services-Access-Key
header in your request. - If you're using Azure Active Directory (token-based auth), you'll need to acquire a bearer token scoped for
https://communication.azure.com/.default
and include it in theAuthorization
header. Authentication for Azure Communication Services
Hope this information is helpful, let me know if you have any further queries.