Im working on an AutoIt application, and today I found out Pushbullet blocked me from reading from their database because I performed too many database reads, this is the actual error message:
"You have been blocked for performing too many database reads per user with this app."
I contacted them to see if I can get my block removed, but while Im waiting for their response I would also like to know what I was doing wrong.
I want to find and display new Notifications, so I was using this code:
$oHTTP = ObjCreate("WinHTTP.WinHTTPRequest.5.1")
$access_token = $PushToken
$oHTTP.Open("Get", "https://api.pushbullet.com/v2/pushes?active=true", False)
$oHTTP.SetCredentials($access_token, "", 0)
$oHTTP.SetRequestHeader("Content-Type", "application/json")
$oHTTP.Send()
$Result = $oHTTP.ResponseText
It was set on a two minutes timer, which I guess triggered the block, but then, whats the right approach to this problem without performing too many requests to their DB (and getting blocked)?