Skip to content

API Funktionen: Teams

mtb-news edited this page Nov 3, 2011 · 4 revisions

API Funktionen: Teams

  • Teaminformationen abrufen

Teaminformationen abrufen

URL

/api/v1/teams/get/<ID>.json

  • ID: Team-ID, z. B. 21

GET-Parameter

n/a

Beispielausgabe

{
    "status": "OK",
    "messages": [],
    "data": {
        "team": {
            "id": "386",
            "name": "Berliner mit Mandeln",
            "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
            "url": "http:\/\/winterpokal-local.mtb-news.de\/\/teams\/view\/386",
            "leader": {
                "id": "257",
                "name": "rik",
                "entries": "21",
                "points": "109",
                "duration": "3438",
                "url": "http:\/\/winterpokal-local.mtb-news.de\/\/users\/view\/257"
            }
        },
        "users": [{
            "id": "1",
            "name": "Thomas",
            "entries": "0",
            "points": "169",
            "duration": "3146",
            "url": "http:\/\/winterpokal-local.mtb-news.de\/\/users\/view\/1"
        },
        {
            "id": "5",
            "name": "Pr\u00e4si",
            "entries": "0",
            "points": "0",
            "duration": "0",
            "url": "http:\/\/winterpokal-local.mtb-news.de\/\/users\/view\/5"
        },
        {
            "id": "257",
            "name": "rik",
            "entries": "21",
            "points": "109",
            "duration": "3438",
            "url": "http:\/\/winterpokal-local.mtb-news.de\/\/users\/view\/257"
        },
        {
            "id": "78096",
            "name": "M\u00fcsli",
            "entries": "0",
            "points": "273",
            "duration": "6212",
            "url": "http:\/\/winterpokal-local.mtb-news.de\/\/users\/view\/78096"
        }]
    }
}