Skip to main content

SDK Initialization

Last updated on

Before using the DS Log Manager service from the SDK you need to initialize your server-side SDK to make you authorized and able to perform any action from create, read, update, and delete.

Golang SDK Initialization

To start using the DS Log Manager service from the Golang SDK, you need to initialize the SDK by making sure that you've done the following requirements.

terminatedServersService := &dslogmanager.TerminatedServersService{
Client: factory.NewDsLogManagerClient(&repository.ConfigRepositoryImpl{}),
TokenRepository: &repository.TokenRepositoryImpl{},
}

On a successful initialization, you can use the Golang SDK to create, read, update and delete DS Log Manager from your serverless app.

Python SDK Initialization

To start using the DS Log Manager service from the Python SDK, you need to initialize the SDK by making sure that you've done the following requirements.

On a successful initialization, you can use the Python SDK to create, read, update and delete DS Log Manager from your serverless app.

.NET (C#) SDK Initialization

Before using the DS Log Manager service, you will need to set some permissions. Use the following .NET namespaces:

    using AccelByte.Sdk.Api.Dslogmanager.Model;
using AccelByte.Sdk.Api.Dslogmanager.Operation;
using AccelByte.Sdk.Api.Dslogmanager.Wrapper;

Java SDK Initialization

Before using the DS Log Manager service, you will need to set some permissions. Initialize the TerminatedServers wrapper from the DS Log Manager service using the following code:

TerminatedServers wTerminatedServers = new TerminatedServers(sdk);

Once completed, you can use the SDK to create, read, update, or delete logs.