Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 887 Bytes

sites.md

File metadata and controls

37 lines (23 loc) · 887 Bytes

Sites

sites_api = client.sites

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.

def list_sites(self)

Response Type

This method returns a ApiResponse instance. The body property of this instance returns the response data which is of type List Sites Response.

Example Usage

result = sites_api.list_sites()
print(result)

if result.is_success():
    print(result.body)
elif result.is_error():
    print(result.errors)