From 8423d0a6beaa235f04bb9294c8997e2f76492c32 Mon Sep 17 00:00:00 2001 From: Rustam Date: Thu, 8 Oct 2020 20:47:46 +0300 Subject: [PATCH 1/2] Fix Timeline.Get() (#147) --- media.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media.go b/media.go index 1a0ed652..5605b24d 100644 --- a/media.go +++ b/media.go @@ -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"` @@ -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, From 9841298a8d13bc0c6646a2cf7b6f89757c8ad704 Mon Sep 17 00:00:00 2001 From: Rustam Date: Sat, 10 Oct 2020 18:39:12 +0300 Subject: [PATCH 2/2] Update go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 72f511e7..8521c4e8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/ahmdrz/goinsta/v2 +module github.com/otono/goinsta/v2 go 1.12