class rtkit.resource.RTResource(url, username, password, auth, **kwargs)[source]

Bases: object

REST Resource Object

Create Connection Object

  • url – Server URL
  • username – RT Login
  • password – Password
  • auth – Instance of rtkit.authenticators
classmethod from_rtrc(auth, filename=None, **kwargs)[source]
get(path=None, headers=None)[source]

GET from the server

post(path=None, payload=None, headers=None)[source]

POST to the server

request(method, path=None, payload=None, headers=None)[source]

Make request to server

class rtkit.resource.RTResponse(request, response)[source]

Bases: object

Represents the REST response from server

body = None

Request Body

headers = None

Headers as dict

logger = None


parsed = None

A List of Tuples of data

status = None

Status String

status_int = None

Status Code