public function Media::mediaSearch in Instagram API 8
Search for recent media in a given area.
Parameters
string $lat: Lat.
string $lng: Lng.
string $distance: Dist.
bool $cacheable: Cacheable.
Return value
array|bool Response array. https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351&acc...
See also
https://www.instagram.com/developer/endpoints/media/
File
- src/
Service/ Media.php, line 61
Class
- Media
- Class Media.
Namespace
Drupal\instagram_api\ServiceCode
public function mediaSearch($lat, $lng, $distance = 1, $cacheable = TRUE) {
$response = $this->client
->request('media/search', [
'lat' => $lat,
'lng' => $lng,
'distance' => $distance,
], $cacheable);
if ($response) {
return $response;
}
return FALSE;
}