Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from chalice import Chalice, Response
- app = Chalice(app_name='callback-service')
- app.debug = True
- LOGGER = app.log
- @app.route('/callback', methods=['POST'], content_types=['text/xml'])
- def get_system_metadata():
- LOGGER.debug('Callback called')
- request_body = app.current_request.raw_body
- LOGGER.debug('request body is {}'.format(request_body))
Add Comment
Please, Sign In to add comment