TradingView-API
TradingView-API copied to clipboard
fix(getUser): deal with unexpected notifications structure
Attempt at addressing this issue: https://github.com/Mathieu2301/TradingView-API/issues/243
Pre-requisites
- [ ] example of the response highlighting the unexpected notifications structure
- [ ] proof of a successful test run
Thanks for the quick fix.
This is the response I get from the server, just the notifications_count part:
"notification_count":{"following":{},"user":{}}
Here is a quick test using a debugger. Note that I have the variable named rs and not data as I'm using 3.4.1:
Everything works as expected now 👍