Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 929 Bytes

sites.md

File metadata and controls

38 lines (25 loc) · 929 Bytes

Sites

SitesApi sitesApi = client.getSitesApi();

Class Name

SitesApi

List Sites

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()

Response Type

ListSitesResponse

Example Usage

sitesApi.listSitesAsync().thenAccept(result -> {
    // TODO success callback handler
    System.out.println(result);
}).exceptionally(exception -> {
    // TODO failure callback handler
    exception.printStackTrace();
    return null;
});