Skip to content

Commit

Permalink
Fix Timeline.Get() (ahmdrz#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustam committed Oct 8, 2020
1 parent b53d84f commit 8423d0a
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 8423d0a

Please sign in to comment.