You are here

public function Locations::getLocation in Instagram API 8

Get information about a location.

Parameters

string $locationId: Location ID.

bool $cacheable: Cacheable.

Return value

array|bool Response array. https://api.instagram.com/v1/locations/{location-id}?access_token=ACCESS-TOKEN

See also

https://www.instagram.com/developer/endpoints/locations/

File

src/Service/Locations.php, line 57

Class

Locations
Class Locations.

Namespace

Drupal\instagram_api\Service

Code

public function getLocation($locationId, $cacheable = TRUE) {
  $response = $this->client
    ->request('locations/' . $locationId, [], $cacheable);
  if ($response) {
    return $response;
  }
  return FALSE;
}