Python wrapper for Binusmaya web API
Project description
binusmaya_py
Python wrapper for Binusmaya web API
Usage
-
Import repo
git clone https://github.com/radityaharya/binusmaya_py
gh repo clone radityaharya/binusmaya_py
wget https://github.com/radityaharya/binusmaya_py/archive/refs/heads/master.zip unzip master.zip
-
Install requirements
pip install -r requirements.txt
-
Install package
pip install .
Example
binusmayapy.bimay import Bimay
import dotenv
import os
dotenv.load_dotenv()
bm = Bimay(token=os.getenv("BIMAY_TOKEN"))
print(bm.get_schedule_date(date_start = datetime.datetime.now()))
output:
[
{
"class_id": "[redacted]",
"class_session_id": "[redacted]",
"course_name": "[redacted]",
"course_class": "[redacted]",
"session_number": 7,
"delivery_mode": "VC",
"join_url": "[redacted]",
"location": {
"location": null,
"location_value": null
},
"date_start": "[redacted]",
"date_end": "[redacted]",
"topic": "[redacted]",
"subtopic": ["[redacted]"],
"resources": [
{
"resource_id": "[redacted]",
"resource_name": "Video Conference",
"resource_type": null,
"resource_url": null,
"resource_is_open": true
},
{
"resource_id": "[redacted]",
"resource_name": "[redacted]",
"resource_type": null,
"resource_url": "[redacted]",
"resource_is_open": true
},
{
"resource_id": "[redacted]",
"resource_name": "[redacted]",
"resource_type": "pptx",
"resource_url": "[redacted]",
"resource_is_open": true
},
{
"resource_id": "[redacted]",
"resource_name": "[redacted]",
"resource_type": null,
"resource_url": "[redacted]",
"resource_is_open": true
},
{
"resource_id": "[redacted]",
"resource_name": "[redacted]",
"resource_type": null,
"resource_url": "[redacted]",
"resource_is_open": true
},
{
"resource_id": "[redacted]",
"resource_name": "Javascript Introduction",
"resource_type": null,
"resource_url": "[redacted]",
"resource_is_open": true
}
],
"is_ended": true
}
]
Disclaimer: This project is not affiliated, associated, authorized, endorsed by, or in any way officially related to "Bina Nusantara University" and or "BinusMaya" and it is used for personal use only. The author is not liable for any damage that may occur from the use of this project. contact@radityaharya.me
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
binusmayapy-1.0.0.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for binusmayapy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51585928c459db0189e18dcee5c7b851c732c23426f5818657668a0a62df96e6 |
|
MD5 | 86af85a609da7dead3844201b5c6efd8 |
|
BLAKE2b-256 | bd16b10d8a066ec28f2ee5af64262a8b398745455c451c509240f3b6b246c2d4 |