Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def set_client():
- username = 'abc'
- password = '123'
- api = APIClient(username, password)
- return api
- def get_client(api):
- api = set_client(api)
- if not api.session_token:
- api.login()
- return api
- @shared_task()
- def mb_account_bal():
- api = get_client(api)
- r = api.account.get_account(balance_only=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement