After finishing AuthLimit.py, all API calling functions should implement the AuthTimer class (as well as share the object) in order to prevent over-calling the API
ClassObject = AuthLimit.AuthTimer()
ClassObject.canInc() -> If apiCallsInMinute<60: true ; else: false
ClassObject.getInc() -> # of times canInc has been called before last reset
AuthTimer has a value incrVal. This gets incremented every time canInc() is called (until it reaches 60). After 60 seconds, that value gets reset to 0. Calling getInc() will give this value.
After finishing AuthLimit.py, all API calling functions should implement the AuthTimer class (as well as share the object) in order to prevent over-calling the API
ClassObject = AuthLimit.AuthTimer() ClassObject.canInc() -> If apiCallsInMinute<60: true ; else: false ClassObject.getInc() -> # of times canInc has been called before last reset
AuthTimer has a value incrVal. This gets incremented every time canInc() is called (until it reaches 60). After 60 seconds, that value gets reset to 0. Calling getInc() will give this value.
started Ticket #29 and revised Ticket #43