Skip to content

Get user infos

Rémy Noulin edited this page Aug 31, 2021 · 1 revision

Get user infos

Now that your client is initialized you can get your info from the intranet like that:

profile = client.get_profile()

You can print the gpa (for exemple) like this:

profile = client.get_profile()
print(str(profile.gpa))
$> python3 exemple.py
-> 0.42

You can have this list of infos, not every infos are showed with autocompletion:

login
title
internal_email
lastname
firstname
userinfo
referent_used
picture
picture_fun
scolaryear
promo
semester
location
documents
userdocs
shell
close
ctime
mtime
id_promo
id_history
course_code
semester_code
school_id
school_code
school_title
old_id_promo
old_id_location
rights
invited
studentyear
admin
editable
restrictprofiles
groups
events
credits
gpa
spice

if you have any doubt you can reefer to https://intra.epitech.eu/user/?format=json

You can now go to the next page ->

Clone this wiki locally