Skip to content

Commit

Permalink
Endpoint Location: MAX_ID insteadof MAX_TAG_ID
Browse files Browse the repository at this point in the history
Use MAX_ID and MIN_ID for this endpoint 
@see https://www.instagram.com/developer/endpoints/locations/
  • Loading branch information
corentinheadoo authored Nov 6, 2017
1 parent edea7ec commit bf2b6e1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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 Expand Up @@ -121,4 +121,4 @@ public function getRawData()
{
return $this->data;
}
}
}

0 comments on commit bf2b6e1

Please sign in to comment.