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:
import freshdeskclient
Generate token
To generate a token to be used for authentication you can do this with this snippet:
from bitlogclient import Token
token = Token(
domain='your_domain',
basic_auth_user= 'your_auth_user',
basic_auth_password= 'your_auth_password',
username='your_username', password='your_password).get_token()
List available dataviews
To list all available dataviews you can use this snippet:
from bitlogclient import Report
views = Report(
token='your_token,
domain='your_domain').list_views()
Get dataview
To get data from a dataview without parameters you can use this snippet:
from bitlogclient import Report
data = Report(
token='your_token,
domain='your_domain').get_view('your_view_name')
Get dataview with parameters
To get data from a dataview with parameters you can use this snippet:
from bitlogclient import Report, ReportParams
data = Report(
token='your_token,
domain='your_domain').get_view_with_params(
'your_view_name',
[
ReportParams('from_date', 'date', '2023-01-01'),
ReportParams('to_date', 'date', '2023-01-01'),
])
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
Built Distribution
Close
Hashes for nn-freshdesk-client-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d91c0d51feb91043787939ffce0889d4f5ba26f9fff9f5c77a4da8542144786 |
|
MD5 | b42fbf97de8fa4af29e8a077b5a4eae4 |
|
BLAKE2b-256 | 92c57ab0673ca3a2896be787364b6a7737bcc9bd0aa6f47054730cb1af15ecc9 |
Close
Hashes for nn_freshdesk_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6f677534e3e82a97733059dfb6fb00aecfefa39866bad81a52c4e1bfbf68ef |
|
MD5 | 07e69ed96652781d210ea18fcd089389 |
|
BLAKE2b-256 | babe926b39212ad93295552131d6f2d33ffb00c97fe97ca7895e58dfcce54712 |