Larabros\Elogram\Repositories\TagsRepository::getRecentMedia PHP Method

getRecentMedia() public method

Get a list of recently tagged media.
public getRecentMedia ( string $tag, integer | null $count = null, string | null $minTagId = null, string | null $maxTagId = null ) : Response
$tag string Name of the tag
$count integer | null Count of tagged media to return
$minTagId string | null Return media before this min_tag_id
$maxTagId string | null Return media after this max_tag_id
return Larabros\Elogram\Http\Response
    public function getRecentMedia($tag, $count = null, $minTagId = null, $maxTagId = null)
    {
        $params = ['query' => ['count' => $count, 'min_tag_id' => $minTagId, 'max_tag_id' => $maxTagId]];
        return $this->client->request('GET', "tags/{$tag}/media/recent", $params);
    }