def instagram_photo_thumb(uid): photopath = insta.photo_cache_path(uid, resolution=insta.THUMBNAIL) return send_file(photopath, mimetype="image/jpeg")
def instagram_photo(uid): photopath = insta.photo_cache_path(uid, resolution=insta.STANDARD) return send_file(photopath, mimetype="image/jpeg")