Skip to content

Ticket info

Information about the ticket for which an openOBD session is run can be retrieved with the ticket info service.

Ticket details

The getTicketDetails call can be used to retrieve some basic information about the ticket on which the openOBD session is started.

Below is a simple code snippet that shows how to retrieve the ticket details.

from openobd import *


class TicketDetailsExample(OpenOBDFunction):

    def run(self):
        # Retrieve and print the ticket details
        ticket_details = self.openobd_session.get_ticket_info()
        print(f"Ticket id: {ticket_details.id}")
        print(f"Ticket number: {ticket_details.number}")