diff --git a/examples/mojangapi/get_profile.py b/examples/mojangapi/get_profile.py index 660f334..70bd2cf 100644 --- a/examples/mojangapi/get_profile.py +++ b/examples/mojangapi/get_profile.py @@ -1,3 +1,20 @@ import pyspapi print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797')) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').timestamp) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').id) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').name) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').is_legacy_profile) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').cape_url) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').skin_url) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').skin_model) + +print(pyspapi.MojangAPI.get_profile(uuid='63ed47877aa3470fbfc46c5356c3d797').skin) + diff --git a/examples/spapi/get_user and get_users.py b/examples/spapi/get_user and get_users.py index d3ab0e3..a199017 100644 --- a/examples/spapi/get_user and get_users.py +++ b/examples/spapi/get_user and get_users.py @@ -4,4 +4,8 @@ spapi = pyspapi.SPAPI(card_id='card_id', token='token') print(spapi.get_user(262632724928397312)) +print(spapi.get_user(262632724928397312).username) + +print(spapi.get_user(262632724928397312).access) + print(spapi.get_users([262632724928397312, 264329096920563714]))