This SDK allows you to integrate WebEngage with your Golang application.
Using this SDK, you can track user events, send transactional events, and more.
You can also use this SDK to trigger campaigns and track user activity in your application.
The SDK is built using the WebEngage REST APIs. You can check the source document here.
To install the WebEngage Golang SDK, run the following command:
go get github.com/n25a/gowebengage
To use the WebEngage Golang SDK, you need to import the package and initialize the client.
package main
import (
"github.com/n25a/gowebengage"
)
func main() {
// Initialize the client
client := gowebengage.NewClient("YOUR_WEBENGAGE_ADDRESS", "PROXY_ADDRESS", "USER_AGENT")
}
If you don't have a proxy, you can initialize the client without the proxy address and give empty string as the second parameter.
for more information about all functions and how to use them, please check `Webengage` interface in `client.go` file.