Kanin / PyPixel

A Python Wrapper for The Hypixel API
MIT License
10 stars 2 forks source link

Major Update #3

Closed destruc7i0n closed 8 years ago

destruc7i0n commented 8 years ago

More UUID compatibility

More functions

destruc7i0n commented 8 years ago

I was thinking returning a custom object so that people can send the object in a request and we can get what we need from it. What do you think? Sort of like this https://github.com/Plancke/hypixel-php/blob/master/HypixelPHP.php#L500 @yrsegal

yrsegal commented 8 years ago

eeeeh seems a bit convoluted, but I guess it could work

destruc7i0n commented 8 years ago

it is a good idea ^^

yrsegal commented 8 years ago

you can use Mojang's api to get the username via uuid i guess and vice versa

destruc7i0n commented 8 years ago

I can add that function, use http://mcuuid.com/api/ for that

destruc7i0n commented 8 years ago

Or do you want to @yrsegal , I hate having an update while you make one too :confused:

yrsegal commented 8 years ago

you do it :P

destruc7i0n commented 8 years ago

ok

destruc7i0n commented 8 years ago

:boom: done

destruc7i0n commented 8 years ago

so now, about that custom object... idk how to do that...

yrsegal commented 8 years ago

... this is an OOPL, you know... objects aren't that hard to do

destruc7i0n commented 8 years ago

I will do something like this then http://stackoverflow.com/questions/3768895/python-how-to-make-a-class-json-serializable

yrsegal commented 8 years ago

http://stackoverflow.com/a/15538391

yrsegal commented 8 years ago

anyway i'll do the player obj

destruc7i0n commented 8 years ago

I will let you do it, I do not have my full amount of resources on this computer with 2GB ram (at school remember?)

yrsegal commented 8 years ago

kek, 16gb ram over here

destruc7i0n commented 8 years ago

I cannot even edit any code without IE crashing

yrsegal commented 8 years ago

IE? xD

destruc7i0n commented 8 years ago

yup, no Chrome

destruc7i0n commented 8 years ago

When I get home I will work on this more, adding specific objects based on the query, see https://github.com/Plancke/hypixel-php/blob/master/HypixelPHP.php#L1426

destruc7i0n commented 8 years ago

Just quickly added some small improvement to the getUUID btw

destruc7i0n commented 8 years ago

I am just going to run tests and then this should be closed

destruc7i0n commented 8 years ago

When I get home

destruc7i0n commented 8 years ago

No need for tests, now to close this!