Esempio n. 1
0
    def test_createParams(self):
        http = '160.16.10.1'
        host = 'localhost'
        db = 'watergate'
        user = '******'
        password = '******'
        conn = DB(host, db, user, password)
        client = ApiClient(host)

        params = client.createParams('aaaaa', 1, [1000, 2000])
        print(params)
Esempio n. 2
0
def sendData(code, id, values):
    client = ApiClient(apiPath)
    params = client.createParams(code, id, values)
    print(params)
    res = client.post(params)