Ejemplo n.º 1
0
def unfriend():
    print '---------data-----------'
    cuserid = request.args.get('cuserid')
    puserid = request.args.get('puserid')

    friends = Friends(cuserid, puserid, app)
    result = friends.unFriend()
    print '--------result---> return'
    print result
    return jsonify({'data':result})
Ejemplo n.º 2
0
def unfriend():
    try:
        friends = Friends(request.json['cuserid'], request.json['puserid'], app)
        result = friends.unFriend()
        response = jsonify(status=result)
        response.status_code = 200
        return response
    except Exception as e:
        response = jsonify(status=False)
        response.status_code = 500
        return response
Ejemplo n.º 3
0
def unfriend():
    cuserid = request.args.get("cuserid")
    puserid = request.args.get("puserid")
    friends = Friends(cuserid, puserid, app)
    result = friends.unFriend()
    return jsonify({"data": result})
Ejemplo n.º 4
0
def unfriend():
    cuserid = request.args.get('cuserid')
    puserid = request.args.get('puserid')
    friends = Friends(cuserid, puserid, app)
    result = friends.unFriend()
    return jsonify({'data': result})