示例#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()})
    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()