Guest User

Untitled

a guest
Oct 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from chalice import Chalice, Response
  2.  
  3. app = Chalice(app_name='callback-service')
  4. app.debug = True
  5. LOGGER = app.log
  6.  
  7. @app.route('/callback', methods=['POST'], content_types=['text/xml'])
  8. def get_system_metadata():
  9. LOGGER.debug('Callback called')
  10. request_body = app.current_request.raw_body
  11. LOGGER.debug('request body is {}'.format(request_body))
Add Comment
Please, Sign In to add comment