Intelex Python SDK
INSTALLATION
pip install intelex
PREREQUISITES
You must set the following environment variables in order to use the SDK:
- ilx_endpoint: The endpoint of your intelex tenant. Example for if tenant/site is called 'Python': https://clients.intelex.com/Login3/Python
- ilx_apikey: The api key for your intelex tenant. Example: dgH67SHvhGhsb7Jsbwe3HnsN6
USAGE
Basic Functions
Results are returned as a string.
import intelex as ilx
# Get current SDK version
ilx.get_sdk_version()
# Get Api Key from environment variables
ilx.get_apikey()
# Get Endpoint from environment variables
ilx.get_endpoint()
# Get SDK Author Contact Details
ilx.get_sdk_author()
Object Functions
Results as returned as a dictionary.
import intelex as ilx
object_name = 'IncidentsObject'
record_id = 'd0bf1ab9-6ff8-4362-8620-11cd74adb30a'
related_record_name = 'SubIncidents'
related_record_id = '3883f898-f6a3-40c8-be7e-8be000c596c6'
action_id = '6c10e61f-e819-4640-bcc8-204577f2e710'
# Returns all records from an Intelex object that the user is authorized to view
ilx.get_records(object_name)
# Returns records from an Intelex object that the user is authorized to view based on input parameters in a dictionary
# Currently supports select, count, sort, filter, expand and pagination (You can add one or many)
# Expand supports select, sort and filter, you can also expand all fields in the related record by using {} to define an empty dictionary
params = {
'select': ['RecordNumber', 'Id'],
'count': True,
'paginate_top': 50,
'paginate_skip': 100,
'sort': ['DateCreated asc'],
'filter': 'TaskType eq \'Question\'',
'expand': {
'CreatedBy': {
'select': ['Email'],
'sort': ['DateCreated'],
'filter': 'Id eq c5b31e68-ad67-4c70-9701-dcbad68088ed'
},
'ModifiedBy': {}
}
ilx.get_records(object_name, params)
# Returns an individual record from an object by referencing the UID of the record
ilx.get_record(object_name, record_id)
# Navigating to related records allows clients to request only the relational data belonging to a parent record.
ilx.get_related_records(object_name, record_id, related_record_name):
# Navigating to related records allows clients to request only specific relational data belonging to a parent record.
ilx.get_related_record(object_name, record_id, related_record_name, related_record_id)
# Update an individual record from an object by passing in a dictionary with updated data
data = {
'CompletionNotes': 'Risk as been corrected by our contractors'
}
ilx.update_record(object_name, record_id, data)
# This request allows you to retrieve the workflow information for a given record.
ilx.get_workflow(object_name, record_id)
# This request allows you to retrieve the information about the workflow status that the record is currently in.
ilx.get_workflow_status(object_name, record_id)
# This request allows you to retrieve the information about the workflow stage that the record is currently in.
ilx.get_workflow_stage(object_name, record_id)
# This request allows you to retrieve the information about the workflow stage actions available for a record in the current stage.
ilx.get_workflow_stage_actions(object_name, record_id)
# This request allows you to retrieve the individual assigned to the workflow stage of the record.
ilx.get_workflow_person(object_name, record_id)
# This request allows you to push a record through its workflow stages.
ilx.execute_workflow_stage_action(object_name, record_id, action_id)
Metadata
Release files for intelex 0.0.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| intelex-0.0.30.tar.gz | 24.1 kB | Without provenance | Details for intelex-0.0.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| intelex-0.0.30-py3-none-any.whl | Python 3 | none | any | Details for intelex-0.0.30-py3-none-any.whl |
Total release size: 40.3 kB
Release files / intelex-0.0.30.tar.gz
| Download URL | intelex-0.0.30.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a319c84596e8d7628399ac472407e436cc6e00db23be8bd0d1903eb749ace962
|
|
BLAKE2b-256 checksum How to use checksums |
0f7c6ddf805a2c5ea08b3b47e64544baa93a46f828ab248d29e7fe4ae6b15784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.3
|
Release files / intelex-0.0.30-py3-none-any.whl
| Download URL | intelex-0.0.30-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa1c28242628a6eaf5abc20a1180a70dda8bbf9a44136268adb80c021b50e394
|
|
BLAKE2b-256 checksum How to use checksums |
0f73f5f5137959e568fa039df0d295bf4f8b71a9586b3cb90c26a70a210e2c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.3
|
Security for intelex 0.0.30
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.