Documentation
¶
Index ¶
- Constants
- Variables
- func AbsencePage() aurion.ScrapTableOption
- func FulfillAddress(address *Address, i int, content string, hasStreetLine3 bool)
- func FulfillParent(parent *Parent, i int, content string)
- func NotationClassPage() aurion.ScrapTableOption
- func NotationPage() aurion.ScrapTableOption
- func PersonalInformationsPage() aurion.ScrapTableOption
- type Absence
- type Address
- type BacType
- type Notation
- type NotationClass
- type Parent
- type PersonalInformations
- type ScheduleEvent
- type ScheduleEventDetails
Constants ¶
View Source
const ( LoginPage = "https://ent-toulon.isen.fr/login" MainMenuPage = "https://ent-toulon.isen.fr/faces/MainMenuPage.xhtml" )
Variables ¶
View Source
var ( SelfInfoMenuId aurion.MenuId = []string{"Mon compte", "Mes informations"} SelfAgendaMenuId aurion.MenuId = []string{"Planning", "Mon planning"} NotationMenuId aurion.MenuId = []string{"Scolarité", "Mes notes"} NotationClassMenuId aurion.MenuId = []string{"Scolarité", "Mes notes (classe)"} AbsenceMenuId aurion.MenuId = []string{"Scolarité", "Mes absences"} )
Functions ¶
func AbsencePage ¶
func AbsencePage() aurion.ScrapTableOption
func FulfillAddress ¶ added in v0.0.4
func FulfillParent ¶ added in v0.0.4
func NotationClassPage ¶ added in v0.0.4
func NotationClassPage() aurion.ScrapTableOption
func NotationPage ¶
func NotationPage() aurion.ScrapTableOption
func PersonalInformationsPage ¶ added in v0.0.4
func PersonalInformationsPage() aurion.ScrapTableOption
Types ¶
type Absence ¶
type Absence struct { Date string `json:"date,omitempty" example:"05/12/2001" extensions:"x-order=1"` Reason string `json:"reason,omitempty" example:"Unexcused absence" extensions:"x-order=2"` Duration string `json:"duration,omitempty" example:"2:00" extensions:"x-order=3"` Hours string `json:"hours,omitempty" example:"08:00 - 10:00" extensions:"x-order=4"` Course string `json:"course,omitempty" example:"Potion class" extensions:"x-order=5"` Teachers []string `json:"teachers,omitempty" example:"Severus Snape,Horace Slughorn" extensions:"x-order=6"` Subject string `json:"subject,omitempty" example:"Love filter potion" extensions:"x-order=7"` }
type Address ¶ added in v0.0.4
type Address struct { Title string `json:"title,omitempty" example:"Mr." extensions:"x-order=1"` Name string `json:"name,omitempty" example:"Ronald Weasley" extensions:"x-order=2"` StreetAddressLine1 string `json:"streetAddressLine1,omitempty" example:"The Burrow" extensions:"x-order=3"` StreetAddressLine2 string `json:"streetAddressLine2,omitempty" example:"Devon" extensions:"x-order=4"` StreetAddressLine3 string `json:"streetAddressLine3,omitempty" example:"-" extensions:"x-order=5"` PostalCodeCity string `json:"postalCodeCity,omitempty" example:"EX11 Ottery St. Cactchpole" extensions:"x-order=6"` Country string `json:"country,omitempty" example:"United Kingdom" extensions:"x-order=7"` }
type BacType ¶ added in v0.0.4
type BacType struct { Academy string `json:"academy,omitempty" example:"London" extensions:"x-order=1"` Year string `json:"year,omitempty" example:"1990" extensions:"x-order=2"` Type string `json:"type,omitempty" example:"L" extensions:"x-order=3"` Note string `json:"note,omitempty" example:"11.54" extensions:"x-order=4"` Merit string `json:"merit,omitempty" example:"-" extensions:"x-order=5"` School string `json:"school,omitempty" example:"City of London School" extensions:"x-order=6"` SchoolCode string `json:"schoolCode,omitempty" example:"FDS78DS5" extensions:"x-order=7"` }
type Notation ¶
type Notation struct { Date string `json:"date,omitempty" example:"05/12/2001" extensions:"x-order=1"` Code string `json:"code,omitempty" example:"21_HOGWAR_Defense_Against_the_Dark_Arts" extensions:"x-order=2"` Name string `json:"name,omitempty" example:"Semester 3 - Defense Against the Dark Arts - Examination" extensions:"x-order=3"` Note string `json:"note,omitempty" example:"18" extensions:"x-order=4"` AbsenceReason string `json:"absenceReason,omitempty" example:"" extensions:"x-order=5"` Comments string `json:"comments,omitempty" example:"Your Stunning Spell could be better" extensions:"x-order=6"` Teachers []string `json:"teachers,omitempty" example:"Quirinus Quirrell,Dolores Umbridge,Remus Lupin" extensions:"x-order=7"` }
type NotationClass ¶ added in v0.0.4
type NotationClass struct { Code string `json:"name,omitempty" example:"21_HOGWAR_Defense_Against_the_Dark_Arts" extensions:"x-order=1"` Name string `json:"code,omitempty" example:"Semester 3 - Defense Against the Dark Arts - Examination" extensions:"x-order=2"` NotePersonal string `json:"notePersonal,omitempty" example:"18" extensions:"x-order=3"` NoteAverage string `json:"noteAverage,omitempty" example:"10.2" extensions:"x-order=4"` NoteMin string `json:"noteMin,omitempty" example:"0" extensions:"x-order=5"` NoteMax string `json:"noteMax,omitempty" example:"18.1" extensions:"x-order=6"` Presence string `json:"presence,omitempty" example:"76" extensions:"x-order=7"` }
func GetNotationClassList ¶ added in v0.0.4
func GetNotationClassList(token aurion.Token) ([]NotationClass, error)
type PersonalInformations ¶ added in v0.0.4
type PersonalInformations struct { Title string `json:"title,omitempty" example:"Mister" extensions:"x-order=10"` Name string `json:"name,omitempty" example:"Ronald" extensions:"x-order=11"` FirstName string `json:"firstName,omitempty" example:"WEASLEY" extensions:"x-order=12"` MiddleNames string `json:"middleNames,omitempty" example:"Bilius" extensions:"x-order=13"` Sex string `json:"sex,omitempty" example:"M" extensions:"x-order=14"` BirthDate string `json:"birthDate,omitempty" example:"01/03/1980" extensions:"x-order=15"` BirthPlace string `json:"birthPlace,omitempty" example:"The Burrow" extensions:"x-order=16"` Nationality string `json:"nationality,omitempty" example:"England" extensions:"x-order=17"` PersonalAddress Address `json:"personalAddress,omitempty" extensions:"x-order=18"` ParentsAddress Address `json:"parentsAddress,omitempty" extensions:"x-order=19"` ReportSendingAddress Address `json:"reportSendingAddress,omitempty" extensions:"x-order=20"` BillingAddress Address `json:"billingAddress,omitempty" extensions:"x-order=21"` PersonalPhone string `json:"personalPhone,omitempty" example:"+447769578549" extensions:"x-order=22"` ParentsPhone string `json:"parentsPhone,omitempty" example:"+447464751722" extensions:"x-order=23"` ReportSendingEmail string `json:"reportSendingEmail,omitempty" example:"arthur.weasley@mom.gouv.uk" extensions:"x-order=24"` ParentsEmail string `json:"parentsEmail,omitempty" example:"arthur.weasley@mom.gouv.uk" extensions:"x-order=25"` PersonalEmail string `json:"personalEmail,omitempty" example:"ronald.weasley@poudlard.uk" extensions:"x-order=26"` LastCertificate string `json:"lastCertificate,omitempty" example:"Baccalauréat" extensions:"x-order=27"` Bac BacType `json:"bac,omitempty" extensions:"x-order=28"` Father Parent `json:"father,omitempty" extensions:"x-order=29"` Mother Parent `json:"mother,omitempty" extensions:"x-order=30"` HaveAcknowledgeGlobalRules *bool `json:"haveAcknowledgeGlobalRules,omitempty" example:"true" extensions:"x-order=31"` HaveAcknowledgeStudentLifeCharter *bool `json:"haveAcknowledgeStudentLifeCharter,omitempty" example:"true" extensions:"x-order=32"` CanIsenUsePersonalImage *bool `json:"canIsenUsePersonalImage,omitempty" example:"true" extensions:"x-order=33"` }
func GetPersonalInformations ¶ added in v0.0.4
func GetPersonalInformations(token aurion.Token) (PersonalInformations, error)
type ScheduleEvent ¶ added in v0.0.4
type ScheduleEvent struct { Id string `json:"id,omitempty" example:"1" extensions:"x-order=1"` Title string `` /* 148-byte string literal not displayed */ Start string `json:"start,omitempty" example:"2001-12-05T08:00:00+0100" extensions:"x-order=3"` End string `json:"end,omitempty" example:"2001-12-05T10:00:00+0100" extensions:"x-order=4"` AllDay bool `json:"allDay,omitempty" example:"false" extensions:"x-order=5"` Editable bool `json:"editable,omitempty" example:"true" extensions:"x-order=6"` ClassName string `json:"className,omitempty" example:"TD" extensions:"x-order=7"` }
func GetPersonalAgenda ¶ added in v0.0.4
func GetPersonalAgenda(token aurion.Token, scheduleOptions aurion.ScrapScheduleOption) ([]ScheduleEvent, error)
type ScheduleEventDetails ¶ added in v0.0.4
type ScheduleEventDetails struct { Id aurion.EventId `json:"id,omitempty" example:"1" extensions:"x-order=10"` Start string `json:"start,omitempty" example:"Du mercredi 5 décembre 2001 à 08:00" extensions:"x-order=11"` End string `json:"end,omitempty" example:"Au mercredi 5 décembre 2001 à 10:00" extensions:"x-order=12"` Status string `json:"status,omitempty" example:"REALISE" extensions:"x-order=13"` Subject string `json:"subject,omitempty" example:"Herbology" extensions:"x-order=14"` Type string `json:"type,omitempty" example:"Travaux dirigés" extensions:"x-order=15"` Description string `json:"description,omitempty" example:"" extensions:"x-order=16"` IsPaper *bool `json:"isPaper,omitempty" example:"false" extensions:"x-order=17"` Rooms []string `json:"rooms,omitempty" example:"Greenhouse" extensions:"x-order=18"` Teachers []string `json:"teachers,omitempty" example:"Sprout Professor" extensions:"x-order=19"` Students []string `json:"students,omitempty" example:"GRANGER Hermione,POTTER Harry,WEASLEY Ronald" extensions:"x-order=20"` Groups []string `json:"groups,omitempty" example:"0102YEAR1" extensions:"x-order=21"` CourseName string `json:"courseName,omitempty" example:"Herbology Class" extensions:"x-order=22"` Module string `json:"module,omitempty" example:"Herbology" extensions:"x-order=23"` }
func GetPersonalAgendaEvent ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.