Skip to main content

Python SDK for Freshdesk API

Project description

nn-freshdesk-client

This is the Python SDK for the Freshdesk API. It allows you to interact with the Freshdesk API using Python.

Installation

You can install the package from PyPi using pip:

pip install nn-freshdesk-client

Usage

After installation, you can import the package in your Python scripts as follows:

from freshdeskclient import API

Initialize the API

To initialize the API, you need your Freshdesk domain and API key:

api = API(domain='your_domain', api_key='your_api_key')

List all tickets

To list all tickets, you can use the list_all method of the Tickets API:

tickets = api.tickets.list_all()

List all conversations for a ticket

To list all conversations for a ticket, you need the ticket ID:

conversations = api.conversations.list_all(ticket_id='your_ticket_id')

List all with params

You can use kwargs to pass query parameters to the freshdesk API. For example:

tickets = api.tickets.list_all(updated_since = '2000-01-01T00:00:00Z')

Please refer to the Freshdesk API documentation for more details on the available endpoints and their parameters.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nn-freshdesk-client-0.0.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

nn_freshdesk_client-0.0.2-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page