2022-04-16 23:16:53 -05:00
|
|
|
from OnspringClient import OnspringClient
|
|
|
|
|
from configparser import ConfigParser
|
2022-04-17 00:31:43 -05:00
|
|
|
from Models import *
|
2022-04-16 23:16:53 -05:00
|
|
|
|
|
|
|
|
cfg = ConfigParser()
|
|
|
|
|
cfg.read('config.ini')
|
|
|
|
|
|
|
|
|
|
key = cfg['prod']['key']
|
|
|
|
|
url = cfg['prod']['url']
|
|
|
|
|
|
|
|
|
|
onspringClient = OnspringClient(url, key)
|
|
|
|
|
|
2022-04-17 00:31:43 -05:00
|
|
|
request = GetRecordsByAppRequest(195, dataFormat=DataFormat.Formatted.name, fieldIds=[6985,6978])
|
|
|
|
|
|
|
|
|
|
response = onspringClient.GetRecordsByAppId(request)
|
|
|
|
|
|
|
|
|
|
print(response.status_code)
|
|
|
|
|
print(response.url)
|
|
|
|
|
print(response.json())
|
2022-04-16 23:16:53 -05:00
|
|
|
|
|
|
|
|
|