Got it working with the most recent API change, also added optional token caching to mimic the real app, new config.ini variable (TOKENTTL) controls the caching, if set to 0 - caching is disabled (backwards compatibility), otherwise token is deemed "valid" for the amount of minutes configured. That would lower the amount of authentication requests if updates are pulled frequently.
Got it working with the most recent API change, also added optional token caching to mimic the real app, new config.ini variable (TOKENTTL) controls the caching, if set to 0 - caching is disabled (backwards compatibility), otherwise token is deemed "valid" for the amount of minutes configured. That would lower the amount of authentication requests if updates are pulled frequently.