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
Changes from 1 commit
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
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