beautypg.com

Google Apps Security and Compliance Services Web Services Application Programming Interface Guide, Early Access Version 1.5 User Manual

Page 68

background image

66

Message Security and Compliance Application Programming Interface Guide RELEASE EA version 1.5

Responses

Response is a DeleteUsersResponse which holds a list of UserDeleteStatus
records, one for each address specified as input. This is an unlimited list.

UserDeleteStatus struct elements are:

Address -- User address specified for deletion. This is required.

Type: string

Status -- A DeleteStatus value representing the status of the requested
delete. This is required.

Type: DeleteStatus. For more information about the DeleteStatus
enumerated status, see “Enumerated Types for AddStatus, ModifyStatus,
and DeleteStatus” on page 45
.

Message -- The User Sync API may return human readable messages to
help when debugging your application. These messages do not happen in
every case and, since they are subject to change, your application should
not be dependent upon or use these strings.

Exceptions

API Infrastructure Exceptions -- See “Exceptions” on page 44, and for exception
handling recommendations, see “Exception Management” on page 20.

JAX WS 2.0 Example

JAX-WS 2.0 Example

// AuthElem

AuthElem authElem = new AuthElem();

authElem.setApiKey("*your api key here*");

authElem.setEmail("*your admin user email here*");

authElem.setPword("*your admin password here");

List deleteUsers = new ArrayList();

deleteUsers.add("[email protected]");

deleteUsers.add("[email protected]");

deleteUsers.add("[email protected]");

List apiStatus =

syncPort.deleteUsers(authElem,deleteUsers);