Exemplo n.º 1
0
def auth_foursquare():
    """
    (GET: social_connect/foursquare/auth)
    """
    from unifide_backend.action.social.foursquare.action import get_auth_url

    verb = "get"
    noun = "social_connect/foursquare/auth"

    user_id = request.args.get("user_id")
    brand_name = request.args.get("brand_name")

    return jsonify({"status": "ok",
                    "auth_url": get_auth_url()})
Exemplo n.º 2
0
    def _test_auth_foursquare(self):
        print "test_auth_foursquare"
        from unifide_backend.action.social.foursquare.action import get_auth_url

        assert get_auth_url() is not None
        print get_auth_url()