Closed nobdefender closed 1 month ago
Hi @nobdefender - thanks for your interest in the project
Yes, I am aware of how the v3 sessions work, I wrote that bit of code. It is true that you do not need to pass in the IG-ACCOUNT-ID header. But, if you have more than one IG account, and you want to login to one that is not your default, its much easier if you do. For example, if you try doing that in the companion, you will see what a pain it is. And it is much easier to force users to supply their accountID than it is to explain how it works for new users - which I don't have time for. So I am going to leave the code as it is.
You may of course use your own subclass in your own projects
Hello!
I try to use login version 3 (OAuth). In the documentation I found:
But in API Companion you may notice that you don't have to pass accountId in request headers. If you don't pass accountId API return default accountId.
If you use login version 3 in the library, you will get an error (file rest.py row 2025):
To fix this you can create a custom class (inheritance from IGService) and modify:
I understand that the way the API works and the instructions in the documentation differ, but I suggest adapting the library to the current situation.
Thank you!