Google Apps Security and Compliance Services Web Services Instrukcja Użytkownika Strona 36

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 70
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 35
34 Message Security and Compliance Application Programming Interface Guide RELEASE EA version 1.5
automatedBatchPort = service.getAutomatedBatchPort();
//Create an Instance of the extra argument structure for orgs
AutomatedBatchAPI.ListorgsqueryParams qpOrgArgs = new
AutomatedBatchAPI.ListorgsqueryParams();
//Get the child records.
qpOrgArgs.setChildorgs("Yes");
// Make our call and retrieve a list of orgRecords.
List<AutomatedBatchAPI.OrgRecord> orgs =
automatedBatchPort.listorgs(authCredentials,"ALL",qpOrgArgs);
// Display information for each org.
for (int orgCount = 0; orgCount < orgs.size(); orgCount++) {
String orgName = orgs.get(orgCount).getOrgname();
System.out.println("Found org " + orgName);
}
} catch ( EndpointResolverAPI.UnknownEmailException_Exception ex ) {
System.err.println("Auth email specified is not located in
postini " +
ex);
System.exit(255);
} catch ( AutomatedBatchAPI.BatchException_Exception ex ) {
System.err.println("Unexpected batch error " + ex );
System.exit(255);
} catch ( Exception ex ) {
System.err.println("Unexpected exception while processing API
command! " +
ex);
System.exit(255);
}
Przeglądanie stron 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 69 70

Komentarze do niniejszej Instrukcji

Brak uwag