A Python toolset for utilizing the Freshservice API
Project description
freshpy
A Python toolset for utilizing the Freshservice API
Installation
The package can be installed via pip using the syntax below.
pip install freshpy --upgrade
You may also clone the repository and install from source using below.
git clone git://github.com/jeffshurtliff/freshpy.git
cd khoros/
python setup.py install
Usage
This section provides basic usage instructions for the package.
Importing the package
Rather than importing the base package, it is recommended that you import the primary FreshPy
class using the syntax
below.
from freshpy import FreshPy
Initializing a Khoros object instance
The primary FreshPy
object serves many purposes, the most important being to establish a connection to the
Freshservice environment with which you intend to interact. As such, when initializing an instance of the FreshPy
object, you will need to pass it the Freshservice URL (e.g. example.freshservice.com
) and the API key it will use
to authenticate so that the connection can be established.
Passing the information directly into the object
The domain and API key can be passed directly into the FreshPy
object when initializing it, as
demonstrated in the example below.
fresh = FreshPy(domain='example.freshservice.com', api_key='abc123DEF456')
Interacting with the Freshservice API
Once the FreshPy
object instance has been initialized, it can be leveraged to interact with a Freshservice
environment in many ways, which is fully documented in the official
documentation. The example below demonstrates how information for a specific incident
ticket can be retrieved in JSON format.
ticket_data = fresh.tickets.get_ticket(1299)
License
Reporting Issues
Issues can be reported within the GitHub repository.
Additional Resources
Additional resources for leveraging the Freshservice API can be found in the official Freshservice API Reference Documentation.
Donations
If you would like to donate to this project then you can do so using this PayPal link.
Disclaimer
This package is considered unofficial and is in no way endorsed or supported by Freshservice.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file freshpy-1.0.0.dev1.tar.gz
.
File metadata
- Download URL: freshpy-1.0.0.dev1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf3710a99296b22a8fa13a0a9ef992ede47d24b1f70a32cff8bb50d670312bb |
|
MD5 | 8c816d30707d13c4a379094ed5d4dd85 |
|
BLAKE2b-256 | f3559734c4f8245c36eea16af0221ad0ef40ded16bec45fbd68c961bc33528ea |
File details
Details for the file freshpy-1.0.0.dev1-py3-none-any.whl
.
File metadata
- Download URL: freshpy-1.0.0.dev1-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33cc5c15e798390e3d41da7c17987c4525847814ec0ce3235bd5e51e11c77546 |
|
MD5 | 14408978044a72ebc0f4c9e050edc794 |
|
BLAKE2b-256 | 1b971eaa6d80c16e3b37c6d6df8d7e1fb6b006f0c70a50ca546b9f55067b6f28 |