Skip to content

Instantly share code, notes, and snippets.

View XboXoffc's full-sized avatar
:shipit:

XboXoffc XboXoffc

:shipit:
View GitHub Profile
@ixtk
ixtk / osu-api-v2.py
Last active December 10, 2024 10:37
Python code example of OSU! API v2 usage
import requests
from pprint import pprint
from os import getenv
API_URL = 'https://osu.ppy.sh/api/v2'
TOKEN_URL = 'https://osu.ppy.sh/oauth/token'
def get_token():
data = {
'client_id': getenv('CLIENT_ID'),