gosumemory icon indicating copy to clipboard operation
gosumemory copied to clipboard

Get player information

Open HollisMeynell opened this issue 3 years ago • 4 comments

I want to get the player's detailed information (such as userid, region, PP, level), but static JavaScript cannot makeCross-Origin Resource Sharing requests. cannot use osuapi,can you support it in the future?

HollisMeynell avatar Jun 04 '21 08:06 HollisMeynell

u can already get all that with axios.

like
axios.get('https://osu.ppy.sh/api/get_user?k={API_KEY}&u=' + tempName)

Impairation avatar Jun 04 '21 08:06 Impairation

We already support that information but only in the tourney client. The signature needs improving. Might support this at some point

l3lackShark avatar Jun 04 '21 15:06 l3lackShark

u can already get all that with axios.

like axios.get('https://osu.ppy.sh/api/get_user?k={API_KEY}&u=' + tempName)

I am not proficient with javascript ,how to use axios ? I tried to replicate this code but it doesn't work Uncaught ReferenceError: axios is not defined

HollisMeynell avatar Mar 06 '22 10:03 HollisMeynell

u can already get all that with axios. like axios.get('https://osu.ppy.sh/api/get_user?k={API_KEY}&u=' + tempName)

I am not proficient with javascript ,how to use axios ? I tried to replicate this code but it doesn't work Uncaught ReferenceError: axios is not defined

https://github.com/axios/axios#note-commonjs-usage

DarkVillager avatar Mar 07 '22 07:03 DarkVillager