Skip to content

Commit

Permalink
Merge pull request #4 from Headoo/master
Browse files Browse the repository at this point in the history
 Endpoint Location: MAX_ID instead of MAX_TAG_ID
  • Loading branch information
marvinosswald authored Jan 18, 2018
2 parents 239b4d3 + 8b0aa06 commit 4313c4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"illuminate/support": "~5.5"
},
"require-dev": {
"phpunit/phpunit": "5.4",
"phpunit/phpunit": "5.7.*",
"vlucas/phpdotenv": "^2.4"
},
"license": "MIT",
Expand Down
18 changes: 9 additions & 9 deletions src/Endpoints/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Class Media
* @package marvinosswald\Instagram
*/
class location {
class Location {
/**
* @var Instagram
*/
Expand Down 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 4313c4c

Please sign in to comment.