Skip to main content

Golang SDK Initialization

Last updated on

Before using the Groups 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 Groups service.

  • Log in as a Client using the SDK.

  • Initialize the service using the following function:

    groupService := &g.GroupService{
    Client: factory.NewGroupClient(&repository.ConfigRepositoryImpl{}),
    TokenRepository: &repository.TokenRepositoryImpl{},
    }

    Once completed, you can use the Golang SDK to create, read, update,** and delete **Groups from your serverless app.