/home/desid573/public_html/gcdriver/square/docs/Api
NameSizeModeActions
ApplePayApi.md23380644editdlrm
CatalogApi.md254980644editdlrm
CheckoutApi.md23130644editdlrm
CustomersApi.md160930644editdlrm
EmployeesApi.md38230644editdlrm
InventoryApi.md161220644editdlrm
LaborApi.md256430644editdlrm
LocationsApi.md16080644editdlrm
MobileAuthorizationApi.md26320644editdlrm
OAuthApi.md78200644editdlrm
OrdersApi.md125380644editdlrm
PaymentsApi.md135700644editdlrm
RefundsApi.md77010644editdlrm
ReportingApi.md81090644editdlrm
TransactionsApi.md186570644editdlrm
V1EmployeesApi.md367270644editdlrm
V1ItemsApi.md763510644editdlrm
V1LocationsApi.md25830644editdlrm
V1TransactionsApi.md299370644editdlrm
Edit: /home/desid573/public_html/gcdriver/square/docs/Api/LocationsApi.md (1608B)
# SquareConnect\LocationsApi All URIs are relative to *https://connect.squareup.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**listLocations**](LocationsApi.md#listLocations) | **GET** /v2/locations | ListLocations # **listLocations** > \SquareConnect\Model\ListLocationsResponse listLocations() ListLocations Provides the details for all of a business's locations. Most other Connect API endpoints have a required `location_id` path parameter. The `id` field of the [`Location`](#type-location) objects returned by this endpoint correspond to that `location_id` parameter. ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new SquareConnect\Api\LocationsApi(); try { $result = $apiInstance->listLocations(); print_r($result); } catch (Exception $e) { echo 'Exception when calling LocationsApi->listLocations: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters This endpoint does not need any parameter. ### Return type [**\SquareConnect\Model\ListLocationsResponse**](../Model/ListLocationsResponse.md) ### Authorization [oauth2](../../README.md#oauth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)