GET agency

A lookup call to retrieve all approved agencies; use https://oohspace.co.uk/api/agency.

INPUT

There is no INPUT for this method.

OUTPUT - JSON sample


{
    "data": {
        "datetime_last_update": "2021-12-01 16:16:15",
        "approved": [
            {
                "agency_id": 15320,
                "agency_name": "Carat",
                "organisation_id": 4,
                "organisation_name": "Media Agency"
            },
            {
                "agency_id": 15321,
                "agency_name": "Goodstuff",
                "organisation_id": 4,
                "organisation_name": "Media Agency"
            },
            {
                "agency_id": 15322,
                "agency_name": "Astus",
                "organisation_id": 2,
                "organisation_name": "Barter Agency"
            }
        ],
        "approval_intervention_history": [
            {
                "agency_id": 15365,
                "agency_name": "Agency Name YX",
                "organisation_id": 3,
                "organisation_name": "DSP",
                "date": "2021-11-10 10:00:09",
                "status": "approved"
            },
            {
                "agency_id": 15360,
                "agency_name": "Agency Name YY",
                "organisation_id": 3,
                "organisation_name": "DSP",
                "date": "2021-11-10 09:59:52",
                "status": "approved"
            },
            {
                "agency_id": 15352,
                "agency_name": "Agency Name YZ",
                "organisation_id": 2,
                "organisation_name": "Barter Agency",
                "date": "2021-11-09 23:57:57",
                "status": "approved"
            }
        ]
    }
}
        

where organisation is one of the followings:

Organisation ID Organisation Name
2 Barter Agency
3 DSP
4 Media Agency
5 Specialist Agency