The function builds a dict of parameters that the `getLeaderboard` and `getFriendsLeaderboard` will use to get the results that the caller wants.

I could make the `getFriendsLeaderboard` and `getLeaderboad` accept a long line of parameters, but I thought that using a function that builds the parameters is cleaner.