import requests
from flask import Flask




__headers__ = {"X-Redmine-API-Key": "1e8a0e5eff9a6c4311daac0f0f69b20fd00f765b"}

__url_base__ = "https://redmine.semperti.com"


def getRedMine(url,headers=__headers__):
    return requests.get(url,headers=headers).json()


def getAllIssues():
    url = __url_base__ + "/issues.json"
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r["issues"]:
        issues[x["id"]] = x["updated_on"]
    return issues


def getIssueRedMine(issue):
    url = __url_base__ + "/issues/" + issue + ".json?include=journals"
    return getRedMine(url)



application = Flask(__name__)


@application.route('/')
def hello_world():
    return 'Hello, World!'


@application.route('/issue/<issue_id>')
def getIssueid(issue_id):
    return str(getIssueRedMine(issue_id))



if __name__ == "__main__":
    application.run()

25991fc82faf4554e1b3cca2c66d143e055b658d
<mask token>


def getAllIssues():
    url = __url_base__ + '/issues.json'
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r['issues']:
        issues[x['id']] = x['updated_on']
    return issues


<mask token>


@application.route('/')
def hello_world():
    return 'Hello, World!'


<mask token>

<mask token>


def getAllIssues():
    url = __url_base__ + '/issues.json'
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r['issues']:
        issues[x['id']] = x['updated_on']
    return issues


def getIssueRedMine(issue):
    url = __url_base__ + '/issues/' + issue + '.json?include=journals'
    return getRedMine(url)


<mask token>


@application.route('/')
def hello_world():
    return 'Hello, World!'


@application.route('/issue/<issue_id>')
def getIssueid(issue_id):
    return str(getIssueRedMine(issue_id))


<mask token>

<mask token>


def getRedMine(url, headers=__headers__):
    return requests.get(url, headers=headers).json()


def getAllIssues():
    url = __url_base__ + '/issues.json'
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r['issues']:
        issues[x['id']] = x['updated_on']
    return issues


def getIssueRedMine(issue):
    url = __url_base__ + '/issues/' + issue + '.json?include=journals'
    return getRedMine(url)


<mask token>


@application.route('/')
def hello_world():
    return 'Hello, World!'


@application.route('/issue/<issue_id>')
def getIssueid(issue_id):
    return str(getIssueRedMine(issue_id))


<mask token>

<mask token>
__headers__ = {'X-Redmine-API-Key': '1e8a0e5eff9a6c4311daac0f0f69b20fd00f765b'}
__url_base__ = 'https://redmine.semperti.com'


def getRedMine(url, headers=__headers__):
    return requests.get(url, headers=headers).json()


def getAllIssues():
    url = __url_base__ + '/issues.json'
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r['issues']:
        issues[x['id']] = x['updated_on']
    return issues


def getIssueRedMine(issue):
    url = __url_base__ + '/issues/' + issue + '.json?include=journals'
    return getRedMine(url)


application = Flask(__name__)


@application.route('/')
def hello_world():
    return 'Hello, World!'


@application.route('/issue/<issue_id>')
def getIssueid(issue_id):
    return str(getIssueRedMine(issue_id))


if __name__ == '__main__':
    application.run()

import requests
from flask import Flask




__headers__ = {"X-Redmine-API-Key": "1e8a0e5eff9a6c4311daac0f0f69b20fd00f765b"}

__url_base__ = "https://redmine.semperti.com"


def getRedMine(url,headers=__headers__):
    return requests.get(url,headers=headers).json()


def getAllIssues():
    url = __url_base__ + "/issues.json"
    return getRedMine(url)


def getIssuesUpdate():
    r = getAllIssues()
    issues = {}
    for x in r["issues"]:
        issues[x["id"]] = x["updated_on"]
    return issues


def getIssueRedMine(issue):
    url = __url_base__ + "/issues/" + issue + ".json?include=journals"
    return getRedMine(url)



application = Flask(__name__)


@application.route('/')
def hello_world():
    return 'Hello, World!'


@application.route('/issue/<issue_id>')
def getIssueid(issue_id):
    return str(getIssueRedMine(issue_id))



if __name__ == "__main__":
    application.run()
