AuthN | C# SDK | Agreements Endpoints
Agreements Endpoints
Create an agreement
Agreements.Create(AgreementCreateRequest)Create an agreement.
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.
var request = new AgreementDeleteRequest.Builder(
AgreementType.EULA,
"peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a")
.Build();
var response = await client.Agreements.Delete(request);
Update agreement
Agreements.Update(AgreementUpdateRequest)Update agreement.
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.
var request = new AgreementListRequest.Builder().Build();
var response = await client.Agreements.List(request);