src/funkyquizbot/app.py
def handle_verification():
    'Get a GET request and try to verify it'
    app.logger.debug('About to read a challenge')
    token = request.args.get('hub.verify_token')
    if request.args.get('hub.mode', '') == 'subscribe' and \
        token is not None and token == SECRET_CHALLENGE:
        return request.args.get('hub.challenge', 'Oops')
    else:
        return 'You dont belong here'
Get a GET request and try to verify it
Get a GET request and try to verify it
Get a GET request and try to verify it
def handle_verification():
    app.logger.debug('About to read a challenge')
    token = request.args.get('hub.verify_token')
    if request.args.get('hub.mode', '') == 'subscribe' and \
        token is not None and token == SECRET_CHALLENGE:
        return request.args.get('hub.challenge', 'Oops')
    else:
        return 'You dont belong here'
def handle_verification ( ) : app . logger . debug ( 'About to read a challenge' ) token = request . args . get ( 'hub.verify_token' ) if request . args . get ( 'hub.mode' , '' ) == 'subscribe' and token is not None and token == SECRET_CHALLENGE : return request . args . get ( 'hub.challenge' , 'Oops' ) else : return 'You dont belong here'
Get a GET request and try to verify it
Get a GET request and try to verify it
'Get a GET request and try to verify it'