I am trying to get this to work in python instead of cli but this simple test isn't working.
import ptpapi
connection = ptpapi.login(username='username',passkey='xxxxxxxxxxxxxxxxxxxxxxxxxx')
print(connection.current_user())
Running the above just once locks me out of PTP:
Your popcorn quota has been reached, come back later!