AuthN | Java SDK | Agreements Endpoints
Agreements Endpoints
Create an agreement
create(AgreementCreateRequest request)Create an agreement.
AgreementCreateRequest request = new AgreementCreateRequest.Builder(
AgreementType.EULA,
"EULA_V1",
"You agree to behave yourself while logged in.").build();
AgreementCreateResponse response = client.agreements().create(request);
Delete an agreement
delete(AgreementDeleteRequest request)Delete an agreement.
AgreementDeleteRequest request = new AgreementDeleteRequest.Builder(
AgreementType.EULA,
"peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a").build();
AgreementDeleteResponse response = client.agreements().delete(request);
Update agreement
update(AgreementUpdateRequest request)Update agreement.
AgreementUpdateRequest request = new AgreementUpdateRequest.Builder(
AgreementType.EULA,
"peu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a"
).setText("You agree to behave yourself while logged in. Don't be evil.").build();
AgreementUpdateResponse response = client.agreements().update(request);
List agreements
list(AgreementListRequest request)List agreements.
AgreementListRequest request = new AgreementListRequest.Builder().build();
AgreementListResponse response = client.agreements().list();