@app.route('/cameras/<camid>/timelapses/', methods=['POST'])
@background
def capture_timelapse(camid):
    count = request.args.get('count', 30, type=int)
    interval = request.args.get('interval', 1, type=float)
    camera = get_camera_from_id(camid)
    filename = camera.capture_timelapse(count, interval)
    return jsonify({}), 201, {'Location': url_for('get_timelapse',
                                                  camid=camid,
                                                  filename=filename,
                                                  _external=True)}
Deletes this email template.
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/capture_timelapse--crossover with--dataset/ETHPy150Open campaignmonitor/createsend-python/createsend/template.py/Template.delete