Golang SDK Initialization
Last updated on
Before using the Notifications service from the Golang SDK, you will need to initialize the SDK by following the steps below:
- Create your OAuth Client and assign the necessary permissions to access the Notifications service.
- Log in as a Client using the SDK.
- Initialize the service using the following function:
notificationService := &service.NotificationServiceWebsocket{
Client: &repository.ConfigRepositoryImpl{},
TokenRepository: &repository.TokenRepositoryImpl{},
ConnectionManager: &utils.ConnectionManagerImpl{},
}
Once completed, you can use the Golang SDK to create, read, update, and delete Notifications from your serverless app.