def make_meetup_blueprint(
        key=None, secret=None, scope=None,
        redirect_url=None, redirect_to=None,
        login_url=None, authorized_url=None,
        session_class=None, backend=None):
    scope = scope or ["basic"]
    meetup_bp = OAuth2ConsumerBlueprint("meetup", __name__,
        client_id=key,
        client_secret=secret,
        scope=scope,
        base_url="https://api.meetup.com/2/",
        authorization_url="https://secure.meetup.com/oauth2/authorize",
        token_url="https://secure.meetup.com/oauth2/access",
        redirect_url=redirect_url,
        redirect_to=redirect_to,
        login_url=login_url,
        authorized_url=authorized_url,
        session_class=session_class,
        backend=backend,
    )
    meetup_bp.from_config["client_id"] = "MEETUP_OAUTH_KEY"
    meetup_bp.from_config["client_secret"] = "MEETUP_OAUTH_SECRET"

    @meetup_bp.before_app_request
    def set_applocal_session():
        ctx = stack.top
        ctx.meetup_oauth = meetup_bp.session

    return meetup_bp
Make a blueprint for authenticating with Meetup using OAuth 2. This requires
dataset/ETHPy150Open singingwolfboy/flask-dance/flask_dance/contrib/meetup.py/make_meetup_blueprint