Skip to content

Commit

Permalink
chore: added Timezone documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimpao committed Nov 20, 2023
1 parent debe726 commit a3e7a61
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/03-supported-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- [Countries](#countries)
- [Filters](#filters)
- [Regions](#regions)
- [Timezones](#timezones)
- [Types](#types)
- [Select, Include and Filters](#select-include-and-filters)
- [withSelect](#withselect)
Expand Down Expand Up @@ -2139,6 +2140,27 @@ foreach ($regions->getData() as $region) {
}
```

### Timezones

- [Official documentation](https://docs.sportmonks.com/football/v/core-api/endpoints/timezones)
- Cache default max age: `1 day`

#### `getAll`

```php
getAll(): TimezoneCollection
```

Get all timezones:

```php
$timezones = $sportMonksFootball->timezones()->getAll();

foreach ($timezones->getData() as $timezone) {
echo $timezone;
}
```

### Types

- [Official documentation](https://docs.sportmonks.com/football/v/core-api/endpoints/types)
Expand Down

0 comments on commit a3e7a61

Please sign in to comment.