Skip to main content

AuthN | C# SDK | Agreements Endpoints

Agreements Endpoints

Create an agreement

Agreements.Create(AgreementCreateRequest)

Create an agreement.

required parameters

AgreementCreateRequest

AgreementCreateRequest

Response Object

Task<Response<AgreementCreateResult>>

Response<AgreementCreateResult>

var request = new AgreementCreateRequest.Builder(
    AgreementType.EULA,
    "EULA_V1",
    "You agree to behave yourself while logged in.")
.Build();

var response = await client.Agreements.Create(request);

Delete an agreement

Agreements.Delete(AgreementDeleteRequest)

Delete an agreement.

required parameters

AgreementDeleteRequest

AgreementDeleteRequest

Response Object

Task<Response<AgreementDeleteResult>>

Response<AgreementDeleteResult>

var request = new AgreementDeleteRequest.Builder(
    AgreementType.EULA, 
    "peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a")
.Build();

var response = await client.Agreements.Delete(request);

Update agreement

Agreements.Update(AgreementUpdateRequest)

Update agreement.

required parameters

AgreementUpdateRequest

AgreementUpdateRequest

Response Object

Task<Response<AgreementUpdateResult>>

Response<AgreementUpdateResult>

var request = new AgreementUpdateRequest.Builder(
    AgreementType.EULA,
    "peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a")
.WithText("You agree to behave yourself while logged in. Don't be evil.")
.Build();

var response = await client.Agreements.Update(request);

List agreements

Agreements.List(AgreementListRequest)

List agreements.

required parameters

AgreementListRequest

AgreementListRequest

Response Object

Task<Response<AgreementListResult>>

Response<AgreementListResult>

var request = new AgreementListRequest.Builder().Build();

var response = await client.Agreements.List(request);