Golang SDK Initialization
Last updated on
To start using the Session Browser service from the Golang SDK, you must initialize the SDK by completing the following steps:
- Create your OAuth Client and assign the necessary permissions to access the Achievement service.
- Log in as a Client using the SDK.
- Initialize the service using the following function:
sessionService := &sessionbrowser.SessionService{
Client: factory.NewSessionBrowserClient(&repository.ConfigRepositoryImpl{}),
TokenRepository: &repository.TokenRepositoryImpl{},
}
Once you have successfully completed this initialization, you can use the Golang SDK to create, read, update, and delete Session Browsers from your serverless app.