メインコンテンツまでスキップ

Integrate Legal Agreements into Extend apps

Last updated on December 23, 2024

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

  1. Create your IAM Client and assign the necessary permissions to access the IAM service.

  2. Log in as a client using the SDK

  3. Initialize the OAuth 2.0 service using the following function:

    agreementService := &legal.AgreementService{
    Client: factory.NewLegalClient(&repository.ConfigRepositoryImpl{}),
    TokenRepository: &repository.TokenRepositoryImpl{},
    }
  4. 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

  1. Create your OAuth Client and assign the necessary permissions to access the Matchmaking service.
  2. Log in as a Client using the SDK
  3. On a successful initialization, you can use the Python SDK to create, read, update, and delete the Legal Agreements service from your serverless app
  4. 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.