No project description provided
Project description
plusoft-api
Use Edusense API funcionalities in your python application.
Instalation
pip install plusoft-api
Usage Examples
You can use this package in order to access Edusense API Rest Api Methods.
First one, you need to instantiate the PlusoftApi object, by passing your username, password and domain:
from plusoft_api import PlusoftApi
# We recommend the use of environment variables to improve security to your credentials
plusoft_api = PlusoftApi(
username="your-login",
password="your-password",
domain="your-domain" # You can get this in your environment url, for example: https://{your-domain}.edusense.app
)
After that, you can access the api methods, for example to insert new users:
from plusoft_api import PlusoftApi
# We recommend the use of environment variables to improve security to your credentials
plusoft_api = PlusoftApi(
username="your-login",
password="your-password",
domain="your-domain" # You can get this in your environment url, for example: https://{your-domain}.edusense.app
)
users = [
{"login": "user1", "name": "User 1", "email": "user1@gmail.com"},
{"login": "user2", "name": "User 2", "email": "user2@gmail.com"},
{"login": "user3", "name": "User 3", "email": "user3@gmail.com"},
{"login": "user4", "name": "User 4", "email": "user4@gmail.com"}
]
for user in users:
plusoft_api.users.insert_users.add_to_payload(**user) # This method will check and store in memory the user to use later to generate payload and upload to plusoft
plusoft_api.users.insert_users.upload() # This method will upload to plusoft the users stored by add_to_payload method
This library is under development and not all methods are available.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plusoft_api-0.1.2.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for plusoft_api-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430a5ee1e1994d9c39c6dbf1fbd2b9445877043ee5349c9a073165b02d8c9d4c |
|
MD5 | 192b513d862a1023b28fc04accada964 |
|
BLAKE2b-256 | 12cb6fdfd28dc67715f2bd0c777bc022a717627676095d6c16176349dd1478a4 |