Scoreboard/Database
Get Score
on the endpoint getscore(id)
parameter:
id: the id of the user you want to get the score of (Integer)
Return:
score of the user as an Integer
Get Total Distance
on the endpoint getdistance(id)
parameter:
id: the id of the user you want to get the total distance of (Integer)
Return:
total distance of the user as an Integer
Get Top 10
on the endpoint gettop10()
parameter:
No parameter needed
return:
[
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
]
returns the top 10 highest scoring Users, as well as their scores and total distance
Get My Position
on the endpoint getmypos(id)
parameter:
id: the id of the user you want to get the total distance of (Integer)
return:
Current position of user with ID as an Integer
###Change Username
on the endpoint changename(id, Username)
parameter:
id: the id of the user you want to get the total distance of (Integer)
Username: The new Username you want to have (String)
Get My Name
on the endpoint getname(id)
parameter:
id: the id of the user you want to get the total distance of
return:
Current Username of ID
Change Username
on the endpoint changename(id, Username)
parameter:
id: the id of the user you want to get the total distance of
return:
Username as String
Scoreboard/Database
Get Score
on the endpoint getscore(id)
parameter:
id: the id of the user you want to get the score of (Integer)Return:
score of the user as an IntegerGet Total Distance
on the endpoint getdistance(id)
parameter:
id: the id of the user you want to get the total distance of (Integer)Return:
total distance of the user as an IntegerGet Top 10
on the endpoint gettop10()
parameter:
No parameter neededreturn:
returns the top 10 highest scoring Users, as well as their scores and total distance
Get My Position
on the endpoint getmypos(id)
parameter:
id: the id of the user you want to get the total distance of (Integer)return:
Current position of user with ID as an Integer###Change Username
on the endpoint changename(id, Username)
parameter:
Get My Name
on the endpoint getname(id)
parameter:
id: the id of the user you want to get the total distance ofreturn:
Current Username of IDChange Username
on the endpoint changename(id, Username)
parameter:
id: the id of the user you want to get the total distance ofreturn:
Username as String