Documentation
¶
Index ¶
- Constants
- func GetXmlString(text string) (*string, error)
- type Absence
- type Assignment
- type Attendance
- type CalendarListing
- type Client
- func (client *Client) Attendance() (*Attendance, error)
- func (client *Client) CalendarListing() (*CalendarListing, error)
- func (client *Client) GradeBook(builder *ParamaterBuilder) (*GradeBook, error)
- func (client *Client) ReportCard() (*ReportingPeriods, error)
- func (c *Client) Request(endpoint Endpoint, handle Handle, method Method, head *Header, ...) (*string, error)
- func (client *Client) SchoolInfo() (*SchoolInfo, error)
- func (client *Client) StudentInfo() (*StudentInfo, error)
- type ConcurrentSchool
- type Course
- type DocumentGUParmater
- type EmergencyContact
- type Endpoint
- type Event
- type GradeBook
- type GradeType
- type Handle
- type Header
- type Mark
- type MatchToDistrictZipCodeParamater
- type Method
- type Paramater
- type ParamaterBuilder
- type ParamaterType
- type Period
- type PeriodTotal
- type PointType
- type Points
- type ReportCard
- type ReportPeriod
- type ReportPeriodParamater
- type ReportingPeriod
- type ReportingPeriods
- type SchoolInfo
- type Score
- type ScoreType
- type Staff
- type StudentInfo
- type Time
- type UserDefinedGroupBox
- type UserDefinedItem
Constants ¶
const (
ReportPeriodNone = -1
)
Variables ¶
This section is empty.
Functions ¶
func GetXmlString ¶
Types ¶
type Absence ¶
type Absence struct {
AbsenceDate Time `xml:"AbsenceDate,attr"`
Reason string `xml:"Reason,attr"`
Note string `xml:"Note,attr"`
DailyIconName string `xml:"DailyIconName,attr"`
CodeAllDayReasonType string `xml:"CodeAllDayReasonType,attr"`
CodeAllDayDescription string `xml:"CodeAllDayDescription,attr"`
Periods []Period `xml:"Periods>Period"`
}
A signle instance / day which you were absence
type Assignment ¶
type Assignment struct {
GradebookID int `xml:"GradebookID,attr"`
Measure string `xml:"Measure,attr"`
Type string `xml:"Type,attr"`
Date Time `xml:"Date,attr"`
DueDate Time `xml:"DueDate,attr"`
Score Score `xml:"Score,attr"`
ScoreType string `xml:"ScoreType,attr"`
Points Points `xml:"Points,attr"`
Notes string `xml:"Notes,attr"`
TeacherID int `xml:"TeacherID,attr"`
StudentID int `xml:"StudentID,attr"`
MeasureDescription string `xml:"MeasureDescription,attr"`
HasDropBox bool `xml:"HasDropBox,attr"`
DropStartDate Time `xml:"DropStartDate,attr"`
DropEndDate Time `xml:"DropEndDate,attr"`
Resources string `xml:"Resources"`
Standards string `xml:"Standards"`
}
type Attendance ¶
type Attendance struct {
Type string `xml:"Type,attr"`
StartPeriod byte `xml:"StartPeriod,attr"`
EndPeriod byte `xml:"EndPeriod,attr"`
PeriodCount byte `xml:"PeriodCount,attr"`
SchoolName string `xml:"SchoolName,attr"`
Absences []Absence `xml:"Absences>Absence"`
TotalExcused []PeriodTotal `xml:"TotalExcused>PeriodTotal"`
TotalTardies []PeriodTotal `xml:"TotalTardies>PeriodTotal"`
TotalUnexcused []PeriodTotal `xml:"TotalUnexcused>PeriodTotal"`
TotalActivities []PeriodTotal `xml:"TotalActivities>PeriodTotal"`
TotalUnexcusedTardies []PeriodTotal `xml:"TotalUnexcusedTardies"`
ConcurrentSchoolsLists []ConcurrentSchool `xml:"ConcurrentSchoolsLists>ConcurrentSchoolsList"`
}
type CalendarListing ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Attendance ¶
func (client *Client) Attendance() (*Attendance, error)
func (*Client) CalendarListing ¶
func (client *Client) CalendarListing() (*CalendarListing, error)
func (*Client) GradeBook ¶
func (client *Client) GradeBook(builder *ParamaterBuilder) (*GradeBook, error)
func (*Client) ReportCard ¶
func (client *Client) ReportCard() (*ReportingPeriods, error)
Returns a ReportingPeriods struct which contains all the reporting periods
func (*Client) SchoolInfo ¶
func (client *Client) SchoolInfo() (*SchoolInfo, error)
func (*Client) StudentInfo ¶
func (client *Client) StudentInfo() (*StudentInfo, error)
type ConcurrentSchool ¶
type ConcurrentSchool struct {
ConcurrentOrgYearGU string `xml:"ConcurrentOrgYearGU,attr"`
ConcurrentSchoolName string `xml:"ConcurrentSchoolName,attr"`
}
This represents a specific concurrent school
type Course ¶
type Course struct {
UsesRichContent bool `xml:"UsesRichContent,attr"`
Period int8 `xml:"Period,attr"`
Title string `xml:"Title,attr"`
Room string `xml:"Room,attr"`
Staff string `xml:"Staff,attr"`
StaffEMail string `xml:"StaffEMail,attr"`
StaffGU string `xml:"StaffGU,attr"`
HighlightPercentageCutOffForProgressBar int `xml:"HighlightPercentageCutOffForProgressBar,attr"`
Marks []Mark `xml:"Marks>Mark"`
}
type DocumentGUParmater ¶
type DocumentGUParmater struct {
DocumentGU string
}
Used in the ReportCard DocumentData Method to request a specific document
func (*DocumentGUParmater) ToString ¶
func (p *DocumentGUParmater) ToString() string
type EmergencyContact ¶
type Event ¶
type Event struct {
Date Time `xml:"Date,attr"`
Title string `xml:"Title,attr"`
DayType string `xml:"DayType,attr"`
StartTime string `xml:"StartTime,attr"`
Icon string `xml:"Icon,attr"`
AGU string `xml:"AGU,attr"`
Link string `xml:"Link,attr"`
DGU string `xml:"DGU,attr"`
ViewType int `xml:"ViewType,attr"`
AddLinkData string `xml:"AddLinkData,attr"`
EvtDescription string `xml:"EvtDescription,attr"`
}
Specific Event on the calendar
type GradeBook ¶
type GradeBook struct {
Type string `xml:"Type,attr"`
ErrorMessage string `xml:"ErrorMessage,attr"`
HideStandardGraphInd bool `xml:"HideStandardGraphInd,attr"`
HideMarksColumnElementary bool `xml:"HideMarksColumnElementary,attr"`
HidePointsColumnElementary bool `xml:"HidePointsColumnElementary,attr"`
HidePercentSecondary bool `xml:"HidePercentSecondary,attr"`
DisplayStandardsData bool `xml:"DisplayStandardsData,attr"`
GBStandardsTabDefault bool `xml:"GBStandardsTabDefault,attr"`
ReportingPeriods []ReportPeriod `xml:"ReportingPeriods>ReportPeriod"`
ReportingPeriod struct {
GradePeriod string `xml:"GradePeriod,attr"`
StartDate Time `xml:"StartDate,attr"`
EndDate Time `xml:"EndDate,attr"`
} `xml:"ReportingPeriod"`
Courses []Course `xml:"Courses>Course"`
}
type Mark ¶
type Mark struct {
MarkName string `xml:"MarkName,attr"`
CalculatedScoreString string `xml:"CalculatedScoreString,attr"`
CalculatedScoreRaw int8 `xml:"CalculatedScoreRaw,attr"`
StandardViews string `xml:"StandardViews"`
GradeCalculationSummary string `xml:"GradeCalculationSummary"`
Assignments []Assignment `xml:"Assignments>Assignment"`
}
type MatchToDistrictZipCodeParamater ¶
type MatchToDistrictZipCodeParamater struct {
ZipCode int
}
GetMatchingDistrictList Method: Specifies a specific zip code to return all the schools in it
func (*MatchToDistrictZipCodeParamater) ToString ¶
func (p *MatchToDistrictZipCodeParamater) ToString() string
type Method ¶
type Method string
const ( GradeBookMethod Method = "Gradebook" GetMatchingDistrictListMethod Method = "GetMatchingDistrictList" AttendanceMethod Method = "Attendance" StudentCalendarMethod Method = "StudentCalendar" StudentInfoMethod Method = "StudentInfo" StudentSchoolInfoMethod Method = "StudentSchoolInfo" GetReportCardInitialDataMethod Method = "GetReportCardInitialData" GetReportCardDocumentDataMethod Method = "GetReportCardDocumentData" )
type ParamaterBuilder ¶
type ParamaterBuilder struct {
// contains filtered or unexported fields
}
func NewParamaterBuilder ¶
func NewParamaterBuilder() ParamaterBuilder
func (*ParamaterBuilder) Add ¶
func (p *ParamaterBuilder) Add(paramater ParamaterType)
func (*ParamaterBuilder) Build ¶
func (p *ParamaterBuilder) Build() Paramater
type ParamaterType ¶
type ParamaterType interface {
ToString() string
}
type Period ¶
type Period struct {
Number byte `xml:"Number,attr"`
Name string `xml:"Name,attr"`
Reason string `xml:"Reason,attr"`
Course string `xml:"Course,attr"`
Staff string `xml:"Staff,attr"`
StaffEMail string `xml:"StaffEMail,attr"`
IconName string `xml:"IconName,attr"`
SchoolName string `xml:"SchoolName,attr"`
StaffGU string `xml:"StaffGU,attr"`
OrgYearGU string `xml:"OrgYearGU,attr"`
}
This type represents a signle Period in which you were absent
type PeriodTotal ¶
Represents one speciifc Period
type Points ¶
func (*Points) UnmarshalText ¶
Unmarshal for Points
type ReportCard ¶
type ReportCard struct {
DocumentGU string `xml:"DocumentGU,attr"`
FileName string `xml:"FileName,attr"`
DocFileName string `xml:"DocFileName,attr"`
DocType string `xml:"DocType,attr"`
Base64Code string `xml:"Base64Code"`
}
I don't currently know how to decode the Base64Code into a PDF
type ReportPeriod ¶
type ReportPeriodParamater ¶
type ReportPeriodParamater struct {
Period int
}
GradeBook Method: Report Periods species which period to get grades from when using the GradeBook Method
func (*ReportPeriodParamater) ToString ¶
func (p *ReportPeriodParamater) ToString() string
type ReportingPeriod ¶
type ReportingPeriod struct {
ReportingPeriodGU string `xml:"ReportingPeriodGU,attr"`
ReportingPeriodName string `xml:"ReportingPeriodName,attr"`
EndDate string `xml:"EndDate,attr"`
Message string `xml:"Message,attr"`
DocumentGU string `xml:"DocumentGU,attr"`
}
func (*ReportingPeriod) GetReportCard ¶
func (p *ReportingPeriod) GetReportCard(client *Client) (*ReportCard, error)
type ReportingPeriods ¶
type ReportingPeriods struct {
ReportingPeriods []ReportingPeriod `xml:"RCReportingPeriods>RCReportingPeriod"`
}
type SchoolInfo ¶
type SchoolInfo struct {
School string `xml:"School,attr"`
Principal string `xml:"Principal,attr"`
SchoolAddress string `xml:"SchoolAddress,attr"`
SchoolAddress2 string `xml:"SchoolAddress2,attr"`
SchoolCity string `xml:"SchoolCity,attr"`
SchoolState string `xml:"SchoolState,attr"`
SchoolZip int `xml:"SchoolZip,attr"`
Phone string `xml:"Phone,attr"`
Phone2 string `xml:"Phone2,attr"`
URL string `xml:"URL,attr"`
PrincipalEmail string `xml:"PrincipalEmail,attr"`
PrincipalGu string `xml:"PrincipalGu,attr"`
StaffList []Staff `xml:"StaffLists>StaffList"`
}
type Score ¶
func (*Score) UnmarshalText ¶
Unmarshal for Score struct
type StudentInfo ¶
type StudentInfo struct {
LockerInfo struct {
LockerGU string `xml:"LockerGU,attr"`
LockerNumber string `xml:"LockerNumber,attr"`
CurrentCombination string `xml:"CurrentCombination,attr"`
Location string `xml:"Location,attr"`
} `xml:"LockerInfoRecords>StudentLockerInfoRecord"`
FormattedName string `xml:"FormattedName"`
PermID int `xml:"PermID"`
Gender string `xml:"Gender"`
Grade byte `xml:"Grade"`
Address string `xml:"Address"`
LastNameGoesBy string `xml:"LastNameGoesBy"`
NickName string `xml:"NickName"`
BirthDate Time `xml:"BirthDate"`
EMail string `xml:"EMail"`
Phone string `xml:"Phone"`
HomeLanguage string `xml:"HomeLanguage"`
CurrentSchool string `xml:"CurrentSchool"`
Track string `xml:"Track"`
HomeRoomTch string `xml:"HomeRoomTch"`
HomeRoomTchEMail string `xml:"HomeRoomTchEMail"`
HomeRoomTchStaffGU string `xml:"HomeRoomTchStaffGU"`
OrgYearGU string `xml:"OrgYearGU"`
HomeRoom string `xml:"HomeRoom"`
CounselorName string `xml:"CounselorName"`
CounselorEmail string `xml:"CounselorEmail"`
CounselorStaffGU string `xml:"CounselorStaffGU"`
Photo string `xml:"Photo"`
EmergencyContacts []EmergencyContact `xml:"EmergencyContacts>EmergencyContact"`
Physician struct {
Name string `xml:"Name,attr"`
Hospital string `xml:"Hospital,attr"`
Phone string `xml:"Phone,attr"`
Extn string `xml:"Extn,attr"`
} `xml:"Physician"`
Dentist struct {
Name string `xml:"Name,attr"`
Office string `xml:"Office,attr"`
Phone string `xml:"Phone,attr"`
Extn string `xml:"Extn,attr"`
} `xml:"Dentist"`
UserDefinedGroupBoxes []UserDefinedGroupBox `xml:"UserDefinedGroupBoxes>UserDefinedGroupBox"`
}
type Time ¶
/ I need to wrap the Time struct in my own to enable xml encoding and decoding
func (Time) MarshalText ¶
func (*Time) UnmarshalText ¶
type UserDefinedGroupBox ¶
type UserDefinedGroupBox struct {
GroupBoxLabel string `xml:"GroupBoxLabel,attr"`
GroupBoxID string `xml:"GroupBoxID,attr"`
VCID string `xml:"VCID,attr"`
UserDefinedItems []UserDefinedItem `xml:"UserDefinedItems>UserDefinedItem"`
}