Skip to content

Commit 581a1ae

Browse files
committed
Add example for balance
1 parent 4c3524c commit 581a1ae

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

examples/balance.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from os import environ
2+
from pprint import pprint
3+
from python_anticaptcha import AnticaptchaClient, ImageToTextTask
4+
from sys import argv
5+
api_key = environ["KEY"]
6+
7+
8+
def process():
9+
client = AnticaptchaClient(api_key)
10+
pprint(client.getBalance())
11+
12+
if __name__ == "__main__":
13+
pprint(process())

0 commit comments

Comments
 (0)