Skip to main content

AuthN | Java SDK | Agreements Endpoints

Agreements Endpoints

Create an agreement

create(AgreementCreateRequest request)

Create an agreement.

required parameters

AgreementCreateRequest

Response Object

AgreementCreateResponse

AgreementCreateResponse

 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.

required parameters

AgreementDeleteRequest

Response Object

AgreementDeleteResponse

AgreementDeleteResponse

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

 AgreementDeleteResponse response = client.agreements().delete(request);

Update agreement

update(AgreementUpdateRequest request)

Update agreement.

required parameters

AgreementUpdateRequest

Response Object

AgreementUpdateResponse

AgreementUpdateResponse

 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.

required parameters

AgreementListRequest

Response Object

AgreementListResponse

AgreementListResponse

 AgreementListRequest request = new AgreementListRequest.Builder().build();

 AgreementListResponse response = client.agreements().list();