示例#1
0
def send_hash_list(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/get/hashlist/" + chat_id)
示例#2
0
def get_anon_hash(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/get/anonhash/" + chat_id)
示例#3
0
def add_anon_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/form/anonhash/" + chat_id, data)
示例#4
0
def get_transactions(address: str, contract: str):
    return Rest.get(BCS_API_URL + '/address/' + address + '/contract-txs/' + contract)
示例#5
0
def check_address_exists(address: str):
    return Rest.get(BASE_API_URL + "/address/" + address)
示例#6
0
def get_person_hash(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/used/person/" + chat_id)
示例#7
0
def get_address_contract():
    return Rest.get(BASE_API_URL + '/user/address/')
示例#8
0
def update_user(chat_id: str, data: object):
    return Rest.put(BASE_API_URL + '/user/' + chat_id, data)
示例#9
0
def get_user_transaction(chat_id: str):
    return Rest.get(BASE_API_URL + '/user/transaction/' + chat_id)
示例#10
0
def get_user(chat_id: str):
    print(BASE_API_URL + '/user/' + chat_id)
    return Rest.get(BASE_API_URL + '/user/' + chat_id)
示例#11
0
def create_user(chat_id: str, data: object):
    print(BASE_API_URL + '/user/' + chat_id, data)
    return Rest.post(BASE_API_URL + '/user/' + chat_id, data)
示例#12
0
def get_users():
    return Rest.get(BASE_API_URL + '/users')
示例#13
0
def get_user_hash(chat_id: str):
    return Rest.get(BASE_API_URL + '/user/hash/' + chat_id)
示例#14
0
def form_user_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + '/user/formhash/' + chat_id, data)
示例#15
0
def get_used_private(chat_id: str):
    return Rest.get(BASE_API_URL + "/user/used/hash/" + chat_id)
示例#16
0
def update_user_transaction(chat_id: str, data: object):
    return Rest.put(BASE_API_URL + '/user/transaction/' + chat_id, data)
示例#17
0
def send_used_private(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/add/hash/" + chat_id, data)
示例#18
0
def delete_user_transaction(chat_id: str):
    return Rest.delete(BASE_API_URL + "/user/transaction/" + chat_id)
示例#19
0
def put_person_hash(chat_id: str, data: object):
    return Rest.post(BASE_API_URL + "/user/add/person/" + chat_id, data)
示例#20
0
def get_api_balance(address: str, contract: str):
    return Rest.get(BCS_API_URL + '/address/' + address + '/contract-txs/' + contract)