diff --git a/CHANGELOG.md b/CHANGELOG.md index dd58a49..66dc60c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.21.0] - 2023-11-02 +### Added + - New API method added: + - getStartLocationAdventure + ## [3.20.0] - 2023-04-27 ### Added - isReferenceCode() and isGeocode() methods diff --git a/src/GeocachingSdk.php b/src/GeocachingSdk.php index 0af8324..2b45193 100644 --- a/src/GeocachingSdk.php +++ b/src/GeocachingSdk.php @@ -46,6 +46,17 @@ public function getAdventure(string $adventureId, array $headers = []): Response return $this->getHttpClient()->get('/adventures/' . $adventureId, $headers); } + /** + * swagger: GET /v{api-version}/adventures/anon/{adventureId} + * + * @see https://api.groundspeak.com/documentation#get-adventure-start + * @see https://api.groundspeak.com/api-docs/index#!/Adventures/Adventures_GetStartLocation + */ + public function getStartLocationAdventure(string $adventureId, array $headers = []): ResponseInterface + { + return $this->getHttpClient()->get('/adventures/anon/' . $adventureId, $headers); + } + /** * swagger: GET /v{api-version}/adventures/search * diff --git a/src/GeocachingSdkInterface.php b/src/GeocachingSdkInterface.php index 0c66eec..074e3f3 100644 --- a/src/GeocachingSdkInterface.php +++ b/src/GeocachingSdkInterface.php @@ -19,6 +19,11 @@ interface GeocachingSdkInterface */ public function getAdventure(string $adventureId, array $headers = []): ResponseInterface; + /** + * @see https://api.groundspeak.com/api-docs/index#!/Adventures/Adventures_GetStartLocation + */ + public function getStartLocationAdventure(string $adventureId, array $headers = []): ResponseInterface; + /** * @see https://api.groundspeak.com/api-docs/index#!/Adventures/Adventures_Search */