Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/v/e/vendttp-HEAD/server/AccountManager.py   vendttp(Download)
from util import get, make_creds, URLOpenError, JSONDecodeError, \
                 InsufficientFunds
from util import settings
 
class NotLoggedInError(Exception): pass
 
      url  = "http://my.studentrnd.org/api/balance"
      app_id, curtime, rand, sig = make_creds()
      data = {"application_id": app_id,
              "time": curtime,
  def deposit(self, amount):
    if not self.logged_in():
      raise NotLoggedInError()
    if self.account_type == AccountManager.SRND:
      app_id, curtime, rand, sig = make_creds()
      raise InsufficientFunds()
    if self.account_type == AccountManager.SRND:
      app_id, curtime, rand, sig = make_creds()
      url = "http://my.studentrnd.org/api/balance/eft"
      get_data = {"application_id" : app_id,