Skip to content

Commit

Permalink
Removes groups historical support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Walker committed Aug 10, 2018
1 parent aca5cd4 commit 0244b0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
31 changes: 10 additions & 21 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Wonde PHP Client

Documentation https://wonde.com/docs/api/1.0/

## Installation
Expand All @@ -9,13 +10,14 @@ Using Composer:

```json
{
"require": {
"wondeltd/php-client": "1.*"
}
"require": {
"wondeltd/php-client": "1.*"
}
}
```

or
or

```bash
composer require wondeltd/php-client
```
Expand Down Expand Up @@ -44,10 +46,10 @@ foreach ($client->schools->all() as $school) {
// Display school name
echo $school->name . PHP_EOL;
}

```

### Single School

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

Expand Down Expand Up @@ -214,8 +216,8 @@ foreach ($school->achievementsAttributes->all() as $achievement) {
}
```


### Assessment - (BETA)

This endpoint is included in the stable release but is likely to change in the future. Please contact support for more information.

```php
Expand All @@ -238,7 +240,7 @@ foreach ($school->assessment->templates->all() as $resultsets) {
echo $resultsets->id . PHP_EOL;
}

// Get results
// Get results
foreach ($school->assessment->results->all() as $results) {
echo $results->id . PHP_EOL;
}
Expand Down Expand Up @@ -494,19 +496,6 @@ 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 Expand Up @@ -658,4 +647,4 @@ foreach ($school->subjects->all() as $subject) {
$client = new \Wonde\Client('TOKEN_GOES_HERE');

$metaObject = $client->meta->get('SCHOOL_ID_GOES_HERE');
```
```
9 changes: 0 additions & 9 deletions src/Endpoints/GroupsHistorical.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Endpoints/Schools.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ class Schools extends BootstrapEndpoint
*/
public $groups;

/**
* @var GroupsHistorical
*/
public $groupsHistorical;

/**
* @var Lessons
*/
Expand Down Expand Up @@ -161,7 +156,6 @@ public function __construct($token, $id = false)
$this->employeeAbsences = new EmployeeAbsences($token, $this->uri);
$this->events = new Events($token, $this->uri);
$this->groups = new Groups($token, $this->uri);
$this->groupsHistorical = new GroupsHistorical($token, $this->uri);
$this->lessons = new Lessons($token, $this->uri);
$this->lessonAttendance = new LessonAttendance($token, $this->uri);
$this->medicalConditions = new MedicalConditions($token, $this->uri);
Expand Down

0 comments on commit 0244b0d

Please sign in to comment.