linus (@loukas) 在 reqable自动获取token,python脚本 中发帖
1.建立环境变量
2.选择环境
3.填写脚本
def onRequest(context, request):
# Print url to console
# print('request url ' + context.url)
# Update or add a query parameter
# request.queries['foo'] = 'bar'
# Update or add a http header
# request.headers['foo'] = 'bar'
# Replace http body with a text
# request.body = 'Hello World'
# Map with a local file
# request.body.file('~/Desktop/body.jso...