picobox

依赖注入(当前仅支持 Python3)

示例

import x1_resource


#---------------------------------------------------------------
# from rds_core.config import RDS_ENV_CONF
# endpoint = RDS_ENV_CONF.X1_RESOURCE_ENDPOINT[RDS_ENV_CONF.REGION]
#---------------------------------------------------------------
# init
box = x1_resource.picobox.Box()
endpoint = "http://<IP>:<PORT>"
box.put("endpoint", endpoint)
x1_resource.picobox.push(box)

# call
user_id = "xxx"
order_id = "1fd73020-4f4d-43f6-a97b-b3a0c6f48eb3"

rsp = x1_resource.resource_order_show_for_create(user_id, order_id)
print(rsp.status_code)
print(rsp.json())

Last updated