@app.route('/api/user', methods=['POST'])
def client_method():
    if ('access_token' not in session):
        abort(401)
    token = session['access_token'][0]
    r = requests.get('https://okpy.org/api/v3/user/?access_token={}'.format(token))
    if (not r.ok):
        abort(401)
    return jsonify(r.json())
@app.route('/api/user', methods=['POST'])
def client_method():
    if ('access_token' not in session):
        abort(401)
    token = session['access_token'][0]
    r = requests.get('https://okpy.org/api/v3/user/?access_token={}'.format(token))
    if (not r.ok):
        abort(401)
    return jsonify(r.json())