PHP Class Larabros\Elogram\Repositories\LocationsRepository

Inheritance: extends AbstractRepository
Show file Open project: larabros/elogram

Public Methods

Method Description
get ( string $id ) : Response Get information about a location.
getRecentMedia ( string $id, string | null $minId = null, string | null $maxId = null ) : Response Get a list of recent media objects from a given location.
search ( integer $latitude, integer $longitude, integer $distance = 1000 ) : Response Search for a location by geographic coordinate.
searchByFacebookPlacesId ( integer $facebookPlacesId ) : Response Search for a location by Facebook Places ID.
searchByFoursquareId ( string $foursquareId ) : Response Search for a location by Foursquare location ID.

Method Details

get() public method

Get information about a location.
public get ( string $id ) : Response
$id string The ID of the location
return Larabros\Elogram\Http\Response

getRecentMedia() public method

Get a list of recent media objects from a given location.
public getRecentMedia ( string $id, string | null $minId = null, string | null $maxId = null ) : Response
$id string The ID of the location
$minId string | null Return media before this min_id
$maxId string | null Return media after this max_id
return Larabros\Elogram\Http\Response

searchByFacebookPlacesId() public method

Search for a location by Facebook Places ID.
public searchByFacebookPlacesId ( integer $facebookPlacesId ) : Response
$facebookPlacesId integer A Facebook Places ID
return Larabros\Elogram\Http\Response

searchByFoursquareId() public method

Search for a location by Foursquare location ID.
public searchByFoursquareId ( string $foursquareId ) : Response
$foursquareId string A Foursquare V2 API location ID
return Larabros\Elogram\Http\Response