Coder Social home page Coder Social logo

py-halopsa's Introduction

Py-HaloPSA

Python module for the HaloPSA API using Client Credentials from HaloPSA's HaloPSA API integration item.

Documentation

No docs yet.

Quick-Start

1. Clone the repository and set up the environment


  1. Clone the repository into your project:

    git clone [email protected]:neschram/Py-HaloPSA.git
  2. Install the package:

    python -m pip install /path/to/Py-HaloPSA/.

2. Configuration

There are two options for configuring the module to your API.

Option 1:

Create or update a python-decouple compatilble config file.

Option 2

Add the configuration to your system's environment variables


Config file

If you do not already have a python-decouple compatible config file, follow these steps to create one. If you do already have a compatible config file, add the content from step 2 into your existing document.

  1. Create a file named .env in the root of your project.

  2. Copy the contents of pyHaloPSA/.env.template to your .env file.

  3. Update the variables with your API's information

    • Optional variables are commented out with a #

Environment Variables

Add the following to your environment variables:

  • BASE_URL: The base path to your API.

    • example: "https://support.haloservicedesk.com"
  • TENANT: Your HaloPSA tenant name.

    • example: haloservicedesk
  • CLIENT_ID: Your HaloPSA API's Client ID

  • CLIENT_SECRET: Your HaloPSA API's Client Secret


3. Import the API module into your project

from halo_api import Halo

4. Interact with API resources

  >>> clients = Halo.get("clients")
  >>> Halo.lookup("clients", "Sandboxed Thoughts")
  >>> agents = Halo.get("agents")
  >>> Halo.lookup("agents", "Nate")

py-halopsa's People

Contributors

neschram avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.