Skip to main content

Intelex SDK

Project description

Build Status PyPI version

Intelex Python SDK

INSTALLATION

pip install intelex

PREREQUISITES

You must set the following environment variables in order to use the SDK:

  1. ilx_endpoint: The endpoint of your intelex tenant. Example for if tenant/site is called 'Python': https://clients.intelex.com/Login3/Python
  2. 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_version()

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'

# 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 and pagination (You can add one or many)

    params = {
        'select': ['RecordNumber', 'Id'],
        'count': True,
        'paginate_top': 50,
        'paginate_skip': 100,
        'sort': ['DateCreated asc'],
        'filter': 'TaskType eq \'Question\''
    }

ilx.get_records(object_name, params)

# Returns an individual record from the Incidents 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)

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

intelex-0.0.27.tar.gz (22.3 kB view hashes)

Uploaded Source

Built Distribution

intelex-0.0.27-py3-none-any.whl (15.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