from flask import Flask, jsonify
import requests
import json

app = Flask(__name__)

@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}".format(folderId, apiKey)
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response

def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)

if __name__ == '__main__':
    config = loadconfig()
    app.run('0.0.0.0', 8080)

6f9522333570a8724cf1c69a93f7364f820a93bf
<mask token>


@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = (
        "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}"
        .format(folderId, apiKey))
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response


def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)


<mask token>

<mask token>


@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = (
        "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}"
        .format(folderId, apiKey))
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response


def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)


if __name__ == '__main__':
    config = loadconfig()
    app.run('0.0.0.0', 8080)

<mask token>
app = Flask(__name__)


@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = (
        "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}"
        .format(folderId, apiKey))
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response


def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)


if __name__ == '__main__':
    config = loadconfig()
    app.run('0.0.0.0', 8080)

from flask import Flask, jsonify
import requests
import json
app = Flask(__name__)


@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = (
        "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}"
        .format(folderId, apiKey))
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response


def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)


if __name__ == '__main__':
    config = loadconfig()
    app.run('0.0.0.0', 8080)

from flask import Flask, jsonify
import requests
import json

app = Flask(__name__)

@app.route('/acm-events-images')
def gdrive():
    apiKey = config['google-drive']['api-key']
    folderId = config['google-drive']['folder-id']
    driveURL = "https://www.googleapis.com/drive/v3/files?q='{}'+in+parents&key={}".format(folderId, apiKey)
    response = jsonify(json.loads(requests.get(driveURL).text))
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response

def loadconfig():
    with open('./config.json', 'r+') as configFile:
        config = configFile.read()
        return json.loads(config)

if __name__ == '__main__':
    config = loadconfig()
    app.run('0.0.0.0', 8080)
