public function Instagram::tag_recent in Drupagram 6
Get the most recent hash media published. GET v1/tags/!tag_name/media/recent
PARAMETERS access_token A valid access token. max_id Return media earlier than this max_id min_id Return media later than this min_id
File
- ./
drupagram.lib.php, line 350 - Classes to implement the full Instagram API
Class
- Primary Instagram API implementation class Supports the full REST API for drupagram.
Code
public function tag_recent($hashtag, $oAuth_token) {
$params = array(
'!tag_name' => t($hashtag),
'!access_token' => $oAuth_token,
);
return $this
->fetch("tags_recent", $params, FALSE);
}