sites_api = client.sites
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.
def list_sites
This method returns a ApiResponse
instance. The data
property in this instance returns the response data which is of type List Sites Response Hash
.
result = sites_api.list_sites
if result.success?
puts result.data
elsif result.error?
warn result.errors
end