You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

lumapps-sdk

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lumapps-sdk

2.0.3
pipPyPI
Maintainers
3

Lumapps SDK

Action Status Pypi Coverage Black Black

LumApps SDK is a set of tools to manipulate the LumApps API

This includes:

  • A client that support all the routes of the API (located in folder lumapps)
  • A set of helper classes to easily manipulate LumApps elements as Python Objects and classes (folder lumapps/helpers)

Installation

pip install lumapps-sdk

Requirements

Python >= 3.8

Getting started

  • Set up your OAuth application

    Before anything else, you need to set up an OAuth application by following the steps in the LumApps Developer Portal.

  • Authenticate

    Once your application set up, get a hand on its client ID and secret, then you can write the following to get an access token for a particular user.

    from lumapps.api import BaseClient
    
    token = "MY TOKEN"
    base_client = BaseClient(
        api_info={"base_url": "https://your-cell.api.lumapps.com"}, # e.g. "https://go-cell-001.api.lumapps.com"
        auth_info={
            "client_id": "your-client-id",
            "client_secret": "your-client-secret"
        }
    )
    
    api = base_client.get_new_client_as("user.email@yourcompany.com", customer_id="your-organization-id")
    
  • Make your first API call

    Let's display the full name of a registered user in lumapps

    usr = api.get_call("user/get", email="user.email@yourcompany.com")
    print("Hello {}".format(usr["fullName"]))
    

Documentation

The SDK documentation is available here.

Code convention

Docstring in PEP 484 type annotations format adapted to python 3.x using comments.

How to get help, contribute, or provide feedback

Please refer to our contributing guidelines.

LumApps SDK is released under the MIT license.

Keywords

lumapps-sdk

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts