import json


def trigger_oauth_expires_test(limit):
    """ Test data for IFTTT trigger bunq_oauth_expires """
    result = [{
        "created_at": "2018-01-05T11:25:15+00:00",
        "expires_at": "2018-01-05T11:25:15+00:00",
        "meta": {
            "id": "1",
            "timestamp": "1515151515"
        }
    }, {
        "created_at": "2014-10-24T09:03:34+00:00",
        "expires_at": "2014-10-24T09:03:34+00:00",
        "meta": {
            "id": "2",
            "timestamp": "1414141414"
        }
    }, {
        "created_at": "2008-05-30T04:20:12+00:00",
        "expires_at": "2008-05-30T04:20:12+00:00",
        "meta": {
            "id": "3",
            "timestamp": "1212121212"
        }
    }]
    return json.dumps({"data": result[:limit]})