ahmdrz / goinsta

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

[Question] Migration guide from V1 #239

Open ngortheone opened 5 years ago

ngortheone commented 5 years ago

https://github.com/tducasse/go-instabot uses frozen V1 version of this lib.

Are there any braking changes or any other major differences between V1 and V2? What are the downsides of using V1 ?

Is there a practical guide for migration from V1 to V2?

I am exploring the possibility of migrating go-instabot to V2

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

ahmdrz commented 5 years ago

Hi,

Are there any breaking changes or any other major differences between V1 and V2?

Yes, there are a lot of changes between V1 and V2. For example go-instabot use insta.SelfTotalUserFollowing() to fetch all of the user's following which no longer exists in V2.

Here is an example of how to fetch all of your following in V2, Followings in Instagraph

In any way, I would be happy to continue V1 or migrating to V2.