Integrate Legal Agreements into Extend apps
Overview
This guide walks you through how to integrate the AccelByte Gaming Services (AGS) Legal Agreements service into your Extend app using the Extend SDK.
SDK initialization
The Extend SDK must be initialized to ensure you're authorized perform create, read, update, and delete actions. Follow these steps:
Extend SDK for Go
Create your IAM Client and assign the necessary permissions to access the IAM service.
Initialize the OAuth 2.0 service using the following function:
agreementService := &legal.AgreementService{
Client: factory.NewLegalClient(&repository.ConfigRepositoryImpl{}),
TokenRepository: &repository.TokenRepositoryImpl{},
}Once completed, you can use the Golang SDK to create, read, update, or delete the Legal Agreements service from your serverless app.
Check out the test case files for Golang on GitHub.
Extend SDK for Python
- Create your OAuth Client and assign the necessary permissions to access the Matchmaking service.
- Log in as a Client using the SDK
- On a successful initialization, you can use the Python SDK to create, read, update, and delete the Legal Agreements service from your serverless app
- To use the Legal Agreements service, make sure you have the necessary permissions.
Check out the test case files for Python on GitHub.
Extend SDK .NET (C#)
Before using the Legal Agreements service, you will need to set some permissions. Use the following .NET namespaces:
using AccelByte.Sdk.Api.Legal.Model;
using AccelByte.Sdk.Api.Legal.Operation;
using AccelByte.Sdk.Api.Legal.Wrapper;
Check out the test case files for.NET (C#) on GitHub.
Extend SDK for Java
Initialize the Agreement wrapper from the Legal Agreements service using the following code:
Agreement wLegalAgreement = new Agreement(sdk);
Once completed, you can use the SDK to create, read, update, or delete agreements.
Check out the test case files for Java on GitHub.
Next step
Learn how to manage legal documents in AGS using SDK. Proceed to the Manage legal documents using SDK guide.