ahmdrz / goinsta

Unofficial Instagram API written in Golang
MIT License
895 stars 247 forks source link

FeddTag: add func for fetching next feedTag page #264

Closed sviande closed 5 years ago

sviande commented 5 years ago

Hi this PR : add func Next on feedTag for fetching next pages (Like Hastag.Next)

Usage:

ft, err := inst.Feed.Tags("mytag")
if err != nil {
   return err
}
dosomethingWithItems(ft)
for ft.Next() {
  dosomethingWithItems(ft)
}

return ft.Error()
ahmdrz commented 5 years ago

Thank you @sviande. Can you create some test functions for feed tags? I'll merge it BTW.

sviande commented 5 years ago

Can you create some test functions for feed tags? I'll merge it BTW.

I will add some tests and create a new PR.