5 * @author Galen Grover <galenjr@gmail.com>
6 * @license http://opensource.org/licenses/mit-license.php The MIT License
9 namespace Instagram\Collection;
12 * Tag Media Collection
14 * Holds a collection of media associated with a tag
16 class TagMediaCollection extends \Instagram\Collection\MediaCollection {
21 * Get the minimum tag id.
22 * if you're using the Realtime API and fetch media from /media/recent for Tags,
23 * you should save the min_tag_id and pass it in next time you hit that endpoint
24 * in response to a realtime push; you'll receive all media since the last time you checked.
26 * @return string Return the min tag id
29 public function getMinTagId() {
30 return isset( $this->pagination->min_tag_id ) ? $this->pagination->min_tag_id : null;
36 * Get the next max tag id for use in pagination
38 * @return string Returns the next max tag id
41 public function getNextMaxTagId() {
42 return isset( $this->pagination->next_max_tag_id ) ? $this->pagination->next_max_tag_id : null;
48 * Get the next max tag id for use in pagination
50 * @return string Returns the next max tag id
53 public function getNext() {
54 return $this->getNextMaxTagId();