Skip to content

Commit

Permalink
Merge pull request #3 from corentinheadoo/patch-2
Browse files Browse the repository at this point in the history
Endpoint Location: MAX_ID insteadof MAX_TAG_ID
  • Loading branch information
kcassam authored Dec 12, 2017
2 parents 94db098 + bf2b6e1 commit 8b0aa06
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Endpoints/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ public function get($id = '')
}

/**
* @param string $minTagId
* @param string $maxTagId
* @param string $minId
* @param string $maxId
* @return mixed|\Psr\Http\Message\ResponseInterface|string
*/
public function recentMedia($minTagId='',$maxTagId='')
public function recentMedia($minId = '', $maxId = '')
{
if(!$this->id){
return "No Location id set";
}
return $this->instagram->get(Location::API_SEGMENT.$this->id.'/media/recent',[
'min_tag_id' => $minTagId,
'max_tag_id' => $maxTagId
'min_id' => $minId,
'max_id' => $maxId
]);
}

Expand All @@ -70,7 +70,7 @@ public function recentMedia($minTagId='',$maxTagId='')
* @param int $distance
* @return mixed|\Psr\Http\Message\ResponseInterface
*/
public function searchByCoordinates($lat, $lng, $distance=500)
public function searchByCoordinates($lat, $lng, $distance = 500)
{
return $this->instagram->get(Location::API_SEGMENT.'search',[
'lat' => $lat,
Expand All @@ -84,7 +84,7 @@ public function searchByCoordinates($lat, $lng, $distance=500)
* @param int $distance
* @return mixed|\Psr\Http\Message\ResponseInterface
*/
public function searchByFbPlacesId($fb_places_id='',$distance=500)
public function searchByFbPlacesId($fb_places_id = '', $distance = 500)
{
return $this->instagram->get(Location::API_SEGMENT.'search',[
'facebook_places_id' => $fb_places_id,
Expand Down

0 comments on commit 8b0aa06

Please sign in to comment.