User!?

This API endpoint supports being used anonymously, however provides more functionality when a user authenticates.

The User endpoint provides basic information about a user such as their username, identifier, display name, rank and join date.

Endpoint

https://api.donutteam.com/User.json

Arguments

As with the rest of the API, arguments are passed as part of the URI separated by forward slashes.

https://api.donutteam.com/{Endpoint}/{Method}/{Data}/{Data}/{Data}

Endpoint (Required)

The endpoint's name, "User," followed by the format of your choosing.

Method (Optional)

id A unique integer value associated with each account. If a method is not defined, id will be used by default.
username A unique string value used as an identifier associated with all users.
discordId A snowflake value that gets associated with all users who connect their Discord account to the Donut Team service. 
session A Donut Team Authorisation Session Identifier.
token Deprecated This has been deprecated and is only documented for internal use.

Data (Required)

The data associated with a user lookup. Only one is required, however an infinite amount is supported. This data will be returned as the key name of each object to make it easy to compare the data.

Example response

XML

GET https://api.donutteam.com/User.xml/username/jake/loren/lucasc190
<DonutTeam>
	<User Value="jake">
		<Id Value="1"/>
		<Username>jake</Username>
		<JoinDate Value="1363694400"/>
		<JoinDateDisplay>19 March 2013 08:00:00am (EDT)</JoinDateDisplay>
		<VerifiedStatus Value="4"/>
		<KarmaScore Value="395"/>
		<Rank>5</Rank>
		<IsConfirmed Value="1"/>
		<Banned Value="0"/>
		<DisplayName>Jake Andreøli</DisplayName>
	</User>
	<User Value="loren">
		<Id Value="2"/>
		<Username>loren</Username>
		<JoinDate Value="1363694400"/>
		<JoinDateDisplay>19 March 2013 08:00:00am (EDT)</JoinDateDisplay>
		<VerifiedStatus Value="4"/>
		<KarmaScore Value="352"/>
		<Rank>5</Rank>
		<IsConfirmed Value="1"/>
		<Banned Value="0"/>
		<DisplayName>Loren Goodwin</DisplayName>
	</User>
	<User Value="lucasc190">
		<Id Value="395"/>
		<Username>lucasc190</Username>
		<JoinDate Value="1396234333"/>
		<JoinDateDisplay>30 March 2014 10:52:13pm (EDT)</JoinDateDisplay>
		<VerifiedStatus Value="4"/>
		<KarmaScore Value="0"/>
		<Rank>5</Rank>
		<IsConfirmed Value="1"/>
		<Banned Value="0"/>
		<DisplayName>Lucas Cardellini</DisplayName>
	</User>
</DonutTeam>

JSON

GET https://api.donutteam.com/User.json/username/jake/loren/lucasc190
{
    "jake": {
        "Id": 1,
        "Username": "jake",
        "JoinDate": 1363694400,
        "JoinDateDisplay": "19 March 2013 08:00:00am (EDT)",
        "VerifiedStatus": 4,
        "KarmaScore": 395,
        "Rank": 5,
        "IsConfirmed": true,
        "Banned": false,
        "DisplayName": "Jake Andre\u00f8li"
    },
    "loren": {
        "Id": 2,
        "Username": "loren",
        "JoinDate": 1363694400,
        "JoinDateDisplay": "19 March 2013 08:00:00am (EDT)",
        "VerifiedStatus": 4,
        "KarmaScore": 352,
        "Rank": 5,
        "IsConfirmed": true,
        "Banned": false,
        "DisplayName": "Loren Goodwin"
    },
    "lucasc190": {
        "Id": 395,
        "Username": "lucasc190",
        "JoinDate": 1396234333,
        "JoinDateDisplay": "30 March 2014 10:52:13pm (EDT)",
        "VerifiedStatus": 4,
        "KarmaScore": 0,
        "Rank": 5,
        "IsConfirmed": true,
        "Banned": false,
        "DisplayName": "Lucas Cardellini"
    }
}

Revision #9
Created Sun, Feb 10, 2019 1:34 PM by Jake Andreoli
Updated Mon, Feb 11, 2019 12:47 AM by Jake Andreoli