Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Fix Timeline.Get() (#147) #322

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/ahmdrz/goinsta/v2
module github.com/otono/goinsta/v2

go 1.12
3 changes: 2 additions & 1 deletion media.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ type FeedMedia struct {
endpoint string
timestamp string

Items []Item `json:"items"`
Items []Item `json:"feed_items"`
NumResults int `json:"num_results"`
MoreAvailable bool `json:"more_available"`
AutoLoadMoreEnabled bool `json:"auto_load_more_enabled"`
Expand Down Expand Up @@ -937,6 +937,7 @@ func (media *FeedMedia) Next(params ...interface{}) bool {
body, err := insta.sendRequest(
&reqOptions{
Endpoint: endpoint,
IsPost: true,
Query: map[string]string{
"max_id": next,
"rank_token": insta.rankToken,
Expand Down