I've successfully used the api for my script but when trying to determine and use the call listtokens to see if my tokens have expired or when they will expire, the api returns the following error:
{'result': 1000, 'error': 'Log in required.'}
I'm using oauth2 as my authenication. The listtokens command doesn't take any input: https://docs.pcloud.com/methods/auth/listtokens.html
To start my script off (as it's in it's beginning stage) I've written a 'list folders' function and that works fine. So it's not that I'm not logged in, it must be something else.
Any ideas?