You are here

public function SquareApi::getLocations in Commerce Square Connect 7

Get locations.

Return value

\SquareConnect\Model\Location[] The locations.

File

includes/SquareApi.php, line 72
Square Connect SDK wrapper.

Class

SquareApi
A wrapper around the Square Connect SDK.

Code

public function getLocations() {
  $location_api = new LocationsApi($this
    ->getClient());
  $location_api
    ->listLocations();
  return $location_api
    ->listLocations()
    ->getLocations();
}