/** * Get the latest images based on the tag * @param string $accessToken * @param string $tagName * @param int $count * @return Object */ public static function getMediaTagged($accessToken, $tagName, $count = 30) { $InstaTags = new InstaTags($accessToken); $response = $InstaTags->getRecentMediaByTag($tagName); $images = json_decode($response); return $images; }
/** * Get the latest images based on the tag * @param string $accessToken * @param string $tagName * @param int $count * @return Object */ public static function getMediaTagged($accessToken, $tagName, $count = 30) { $InstaTags = new InstaTags($accessToken); $InstaTags->count = $count; $response = $InstaTags->getRecentMediaByTag($tagName); return $response; }