Skip to content

Commit

Permalink
Updates readme to document new endpoint support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Walker committed Nov 10, 2017
1 parent 23603bb commit 5b4edfe
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,22 @@ foreach ($school->students->all(['contact_details', 'extended_details'], ['updat
}
```

### Pre Admission Students

```php
$client = new \Wonde\Client('TOKEN_GOES_HERE');

$school = $client->school('SCHOOL_ID_GOES_HERE');

// Get students
foreach ($school->studentsPreAdmission->all() as $studentPreAdmission) {
echo $studentPreAdmission->forename . ' ' . $studentPreAdmission->surname . PHP_EOL;
}

// Get single student
$student = $school->studentsPreAdmission->get('STUDENT_ID_GOES_HERE');
```

### Achievements

```php
Expand Down Expand Up @@ -439,6 +455,19 @@ foreach ($school->employees->all() as $employee) {
}
```

### Employee Absencess

```php
$client = new \Wonde\Client('TOKEN_GOES_HERE');

$school = $client->school('SCHOOL_ID_GOES_HERE');

// Get employee absencess
foreach ($school->employeeAbsences->all() as $employeeAbsence) {
echo $employeeAbsence->employee . ' ' . $employeeAbsence->absence_type . PHP_EOL;
}
```

### Events

```php
Expand All @@ -465,6 +494,19 @@ foreach ($school->groups->all() as $group) {
}
```

### Historical Groups

```php
$client = new \Wonde\Client('TOKEN_GOES_HERE');

$school = $client->school('SCHOOL_ID_GOES_HERE');

// Get groups
foreach ($school->groupsHistorical->all() as $historicalGroup) {
echo $historicalGroup->name . PHP_EOL;
}
```

### Lessons

```php
Expand Down

0 comments on commit 5b4edfe

Please sign in to comment.