SitesApi sitesApi = client.getSitesApi();
SitesApi
Lists the Square Online sites that belong to a seller. Sites are listed in descending order by the created_at
date.
Note: Square Online APIs are publicly available as part of an early access program. For more information, see Early access program for Square Online APIs.
CompletableFuture<ListSitesResponse> listSitesAsync()
sitesApi.listSitesAsync().thenAccept(result -> {
// TODO success callback handler
System.out.println(result);
}).exceptionally(exception -> {
// TODO failure callback handler
exception.printStackTrace();
return null;
});