2022-12-22 15:34:49 +08:00
|
|
|
# import requests
|
|
|
|
#
|
|
|
|
# from Utils.Schemas import IndicatorDescription
|
|
|
|
#
|
|
|
|
# URL = "http://test.fecribd.com/api/index_store/register"
|
|
|
|
# TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2luZm8iOnsidWlkIjoiVUlEMDAwMSIsImVtYWlsIjoiZmVjcmliZEBmZWNyLmNvbS5jbiIsIm5hbWUiOiJyb290Iiwicm9sZSI6Ilx1N2JhMVx1NzQwNlx1NTQ1OCIsImRlcGFydG1lbnQiOiJcdTY1NzBcdTViNTdcdTUzMTZcdTkwZTgiLCJyb2xlX2lkIjoiUk9MRTAxIiwiZGVwYXJ0bWVudF9pZCI6IkQwMDEifSwiZXhwIjoxNjgzNDc2OTA4fQ.8girdw3n0WDktRuK0aSgGor10eb11nIFvRJqUtPZum4"
|
|
|
|
# HEADERS = {"token": TOKEN}
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# def register_to_index_store(schema: IndicatorDescription):
|
|
|
|
# res = requests.post(url=URL, headers=HEADERS, json=schema.dict())
|
|
|
|
# if res.status_code == 200:
|
|
|
|
# return True
|
|
|
|
# else:
|
|
|
|
# return False
|