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
  • reqtype (str) – Request type, can be one of ["api", "session"]

  • endpoint (str) – API Endpoint to send request to

  • method (str) –

Variables
  • method – HTTP Method to use

  • API_ROUTE – base api url

  • SESSION_ROUTE – base session server api url

property url: str

Full URL without any data

Returns

Full API request URL

class skywrapper.http.HypixelRoute(method, endpoint)[source]
Parameters
  • endpoint (str) – API Endpoint to send request to

  • method (str) –

Variables
  • method – HTTP Method to use

  • BASE – base api url

property url: str

Full URL without any data

Returns

Full API request 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
Returns