Larabros\Elogram\Repositories\MediaRepository¶
-
class
MediaRepository
¶ MediaRepository
-
property
client
¶ protected AdapterInterface
-
get
($id)¶ Get information about a media object.
Parameters: - $id (string) – The ID of the media object
Returns: Response
-
getByShortcode
($shortcode)¶ This method returns the same response as
MediaRepository::get
Parameters: - $shortcode (string) – The shortcode of the media object
Returns: Response
-
search
($latitude, $longitude, $distance = 1000)¶ Search for recent media in a given area.
Parameters: - $latitude (int) – Latitude of the center search coordinate. If used,
$longitude
is required - $longitude (int) – Longitude of the center search coordinate. If used,
$latitude
is required - $distance (int) – The distance in metres. Default is ``1000``m, max distance is 5km.
Returns: Response
- $latitude (int) – Latitude of the center search coordinate. If used,
-
__construct
(AdapterInterface $client)¶ Creates a new instance of
AbstractRepository
.Parameters: - $client (AdapterInterface) –
-
property