internal¶
fuck
Warning
Items documented here are not guarunteed to be stable. Breaking changes may be added randomly and there will be no notice as any usage of internal methods are not supported.
- class skywrapper.http.MojangRoute(method, reqtype, endpoint)[source]¶
- Parameters
- Variables
method – HTTP Method to use
API_ROUTE – base api url
SESSION_ROUTE – base session server api url
- class skywrapper.http.HypixelRoute(method, endpoint)[source]¶
- Parameters
- Variables
method – HTTP Method to use
BASE – base api url
- class skywrapper.http.HTTPClient(useragent=None)[source]¶
Responsible for starting the great robot uprise and the destruction of humanity.
Also responsible for communication of this library.
I don’t know why I added this class, though it may prove useful when adding async support.
- Parameters
useragent (str) – User-Agent string to use, auto generated if not provided.
- request(route, **kwargs)[source]¶
Send an HTTP request
- Parameters
route (Union[skywrapper.http.MojangRoute, skywrapper.http.HypixelRoute]) – one of
MojangRouteorHypixelRouteroute.urlkwargs – keyword arguments to pass to
requests.request()
- Returns