From bf2b6e1ad7ef3032eaa90dd29223be975661626a Mon Sep 17 00:00:00 2001 From: corentinheadoo Date: Mon, 6 Nov 2017 11:49:25 +0100 Subject: [PATCH] Endpoint Location: MAX_ID insteadof MAX_TAG_ID Use MAX_ID and MIN_ID for this endpoint @see https://www.instagram.com/developer/endpoints/locations/ --- src/Endpoints/Location.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Endpoints/Location.php b/src/Endpoints/Location.php index 006fab5..513528f 100644 --- a/src/Endpoints/Location.php +++ b/src/Endpoints/Location.php @@ -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 ]); } @@ -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, @@ -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, @@ -121,4 +121,4 @@ public function getRawData() { return $this->data; } -} \ No newline at end of file +}