-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
19 lines (16 loc) · 1.15 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import requests as rq
host = 'http://127.0.0.1:5000/api'
#r = rq.post(f'{host}/moodle/register', json={'username':'<username>','password':'<password>'})
#r = rq.get(f'{host}'/intiDB?pass=anmrst99', json={'username':'<username>','password':'<password>'})
#r = rq.post(f'{host}/moodle/process_register', json={'username':'<username>','password':'<password>'})
r = rq.post(f'{host}/moodle/bulk', json={'username':'<username>','password':'<password>'})
#r = rq.post(f'{host}/vtop/attendance',json = {'username':'<username>','password':'<password>'})
#r = rq.post(f'{host}'/tgm/cmnd')
#r = rq.post(f'{host}/vtop/bulk',json = {'username':'<username>', 'password':'<password>'})
#r = rq.post(f'{host}/vtop/timetable',json = {'username':'<username>', 'password':'<password>'})
#r = rq.post(f'{host}/vtop/gradelist',json = {'username':'<username>', 'password':'<password>'})
#r = rq.post(f'{host}/vtop/gradecalc',json = {'username':'<username>', 'password':'<password>'})
#r = rq.post(f'{host}/vtop/marks',json = {'username':'<username>', 'password':'<password>'})
#r = rq.post(f'{host}/vtop/attendance',json = {'username':'<username>', 'password':'<password>'})
#print(r)
print(r.text)