Socket
Socket
Sign inDemoInstall

nftl-ed-lms-tools

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nftl-ed-lms-tools

Tool 4 partial Ed LMS API handling


Maintainers
1

Readme

Library: nftl-ed-lms-tools

This is a tool for Ed LMS API handling.

Source documentation of api is available here

PyPI project page

Installation

pip install nftl-ed-lms-tools

Usage

    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    users = ed.get_users_api().get_users()

    if users:
        print('Yupi!')

Interface

Users

    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    users = ed.get_users_api().get_users()

    if users:
        print('Yupi!')

Available methods

get_users()

Get a list of users.

API reference

Args:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
create_or_update_user()

Create or update a user.

API reference

Args:
    user_data: user data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
get_external_token()

Get users authentication token by externalId.

API reference

Args:
    external_id: users external identifier
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
get_token()

Get users authentication token by user id.

API reference

Args:
    user_id: users external identifier
    token: optional auth token that will overwrite EdApi token    
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success

User groups

    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    groups = ed.get_usersgroups_api().get()

    if groups:
        print('Yupi!')

Available methods

get()

Get a list of user groups.

API reference

Args:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or user groups info as
    :py:class:`typing.List` when success
create_or_update_group()

Create or update a user group.

API reference

Args:
    group_data: group data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or group info as :py:class:`typing.Dict`
    when success

Deployment how to

Available here

FAQs


Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc