go for it. it's automated.
Say some guys app tracks names primarily (me, it cycles through logs for usernames not UIDs and editing the username to UID would use way too much in resources and would break logging, unless you want logs like <39283> Hi there greg) it'd make migrating a user from the old username to the new much easier/faster. As for the user profile, a quick view of source tells me I'm dumb and I need to hover over the username, didn't know that. Whoops.peppy wrote:
what for? and it is still in user profiles
Not as easy as that seeing how my stuff comes directly from IRC with no middleman for conversion. If there was a version of Bancho that used UID; I'd use it and create a postprocessor for converting the UID to real name but its a pain creating a preprocessor to convert to UID and a postprocessor to convert from for human readable format especially seeing the quantity people talk in all channels and the amount of API calls that'll be, even with caching it'll still be heavy.peppy wrote:
Logging based on username is horribly wrong. You should be using user id from the start..
get_user
Don't share your key. Request your users to enter their own API key. It's as simple as that.magnontobi wrote:
What I mean is what would happen if people were to get hold of your api key and abuse it. Would that ban me on osu! for trying to make a cool application?
That is one option. One that I have been thinking about at that. However, to get an API key you have to apply for access. The form on which you do so is quite obviously meant for developers only. Really, what I'd like is to have Peppy's opinion on what to do for this one.XPJ38 wrote:
Request your users to enter their own API key.
https://osu.ppy.sh/p/api ^^EMENCII wrote:
So... Can I?
Yes, but... Isn't it too much data?oliebol wrote:
https://osu.ppy.sh/p/api ^^EMENCII wrote:
So... Can I?
Well then, I'll try...oliebol wrote:
¯\_(ツ)_/¯
Thank you very much, your help was very appreciatedoliebol wrote:
Join the dev-discord server (http://discord.gg/ppy) and ask in the api-channel there
$.post(
"https://osu.ppy.sh/api/get_scores",
{
k : "my_api_key",
b : '1026729',
u : "Wilchq",
m : 0,
type : "string"
},
function(data) {
console.log(data);
}
);
If you specify the "u" parameter, it will return empty unless that player has an score in that map. Remove that parameter.Vostok Sisters wrote:
Hello. I trying to grab information about top 100 scores of a specified beatmap.
But the server receives an empty response. Where error in my query?
Full Tablet wrote:
If you specify the "u" parameter, it will return empty unless that player has an score in that map. Remove that parameter.Vostok Sisters wrote:
Hello. I trying to grab information about top 100 scores of a specified beatmap.
But the server receives an empty response. Where error in my query?
Also, try using '0' instead of 0 in the "m" parameter.
Put your api key in the "k" parameter if you haven't already.
Yes, with get-request it's works. Thanks.Full Tablet wrote:
https://github.com/ppy/osu-api/issues/139
It seems like get_scores doesn't work with POST requests in particular. Try doing a GET request instead.
k - api key (required).If I specify the username in the query, does the user's top results return or result what in the top 100 best of all time and users?
b - specify a beatmap_id to return score information from (required).
u - specify a user_id or a username to return score information for.