Delete
This commit is contained in:
30
yoomoney_src/reg.py
Normal file
30
yoomoney_src/reg.py
Normal file
@@ -0,0 +1,30 @@
|
||||
from yoomoney import Client
|
||||
from datetime import datetime, timedelta
|
||||
import os
|
||||
token = "410012845407838.F390B1DD6C407313ADE9D05C31AA4BCA24A8FD68B050D1DDE209DD13B40964CC2A97970CE9C376B8D36375F0A6F57D33E8223616C05CFB56C5E52DDB1DE937D498650EFD8037C10BA131DE8F679EA9D1E63DE3A5A4F44E030951721267E3818B36E0B472B9400A4507EECD564FD55D4B427F37BDD33E7695D7F4E8F94C566D09"
|
||||
client = Client(token)
|
||||
|
||||
def paid(id_u: str):
|
||||
print(token)
|
||||
now_date = datetime.today() - timedelta(days=1)
|
||||
history = client.operation_history(from_date=now_date, records=100)
|
||||
|
||||
# print("List of operations:")
|
||||
# print("Next page starts with: ", history.next_record)
|
||||
|
||||
for operation in history.operations:
|
||||
if operation.label == id_u:
|
||||
return True
|
||||
# print()
|
||||
# print("Operation:",operation.operation_id)
|
||||
# print("\tStatus -->", operation.status)
|
||||
# print("\tDatetime -->", operation.datetime)
|
||||
# print("\tTitle -->", operation.title)
|
||||
# print("\tPattern id -->", operation.pattern_id)
|
||||
# print("\tDirection -->", operation.direction)
|
||||
# print("\tAmount -->", operation.amount)
|
||||
# print("\tLabel -->", operation.label)
|
||||
# print("\tType -->", operation.type)
|
||||
return False
|
||||
|
||||
#print(paid("Ilias"))
|
||||
Reference in New Issue
Block a user