Skip to content

Commit

Permalink
Added getStartLocationAdventure method
Browse files Browse the repository at this point in the history
  • Loading branch information
Surfoo committed Nov 1, 2023
1 parent 27dfbe6 commit 34d67c4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/GeocachingSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
5 changes: 5 additions & 0 deletions src/GeocachingSdkInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 34d67c4

Please sign in to comment.