// Next allows pagination after calling:
// User.Stories
//
//
// returns false when list reach the end
// if StoryMedia.Error() is ErrNoMore no problem have been occurred.
Next allows pagination after calling:
User.Stories

returns false when list reach the end
if StoryMedia.Error() is ErrNoMore no problem have been occurred.
// Next allows pagination after calling : // User . Stories // // // returns false when list reach the end // if StoryMedia . Error () is ErrNoMore no problem have been occurred .
func (media *StoryMedia) Next(params ...interface{}) bool {
	if media.err != nil {
		return false
	}
	insta := media.inst
	endpoint := media.endpoint
	if media.uid != 0 {
		endpoint = fmt.Sprintf(endpoint, media.uid)
	}
	body, err := insta.sendSimpleRequest(endpoint)
	if err == nil {
		m := StoryMedia{}
		err = json.Unmarshal(body, &m)
		if err == nil {
			*media = m
			media.inst = insta
			media.endpoint = endpoint
			media.err = ErrNoMore 
			media.setValues()
			return true
		}
	}
	media.err = err
	return false
}
func ( media * StoryMedia ) Next ( params ... interface { } ) bool { if media . err != nil { return false } insta := media . inst endpoint := media . endpoint if media . uid != 0 { endpoint = fmt . Sprintf ( endpoint , media . uid ) } body , err := insta . sendSimpleRequest ( endpoint ) if err == nil { m := StoryMedia { } err = json . Unmarshal ( body , & m ) if err == nil { * media = m media . inst = insta media . endpoint = endpoint media . err = ErrNoMore media . setValues ( ) return true } } media . err = err return false }
Next allows pagination after calling:
User.Stories
Next allows pagination after calling : User . Stories
// TODO check NextID media // TODO: See if stories has pagination