Skip to content

Commit

Permalink
Added getWherigoCartridge method
Browse files Browse the repository at this point in the history
  • Loading branch information
Surfoo committed Jan 17, 2021
1 parent 03a8991 commit 74bb34a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/Sdk/GeocachingSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ public function getUserTrackables(array $query = [], array $options = [])
}

/**
* swagger: GET /v{api-version}/trackables/{referenceCode}/journeys
* swagger: GET /v{api-version}/trackables/{referenceCode}/journeys
*
* @see https://api.groundspeak.com/documentation#get-trackable-journeys
* @see https://api.groundspeak.com/api-docs/index#!/Trackables/Trackables_GetTrackableJourneys
Expand Down Expand Up @@ -1047,7 +1047,7 @@ public function getAttributes(array $options = [])
}

/**
* swagger: GET /v{api-version}/geocachesizes
* swagger: GET /v{api-version}/geocachesizes
*
* @see https://api.groundspeak.com/documentation#get-geocache-sizes
* @see https://api.groundspeak.com/api-docs/index#!/ReferenceData/ReferenceData_GetGeocacheSizes
Expand All @@ -1060,7 +1060,7 @@ public function getGeocacheSizes(array $options = [])
}

/**
* swagger: GET /v{api-version}/geocachestatuses
* swagger: GET /v{api-version}/geocachestatuses
*
* @see https://api.groundspeak.com/documentation#get-geocache-statuses
* @see https://api.groundspeak.com/api-docs/index#!/ReferenceData/ReferenceData_GetGeocacheStatuses
Expand Down Expand Up @@ -1110,6 +1110,18 @@ public function getOptedOutUsers(array $query, array $options = [])
{
return $this->httpClient->get('optedoutusers', $query, $options);
}

/**
* swagger: GET /v{api-version}/wherigo/{guid}/cartridge
*
* @see https://api.groundspeak.com/api-docs/index#!/Wherigo/Wherigo_GetWherigoCartridge
*
* @return \Geocaching\Lib\Adapters\GuzzleHttpClient
*/
public function getWherigoCartridge(string $guid, array $query = [], array $options = [])
{
return $this->httpClient->get('wherigo/' . $guid . '/cartridge', $query, $options);
}

/**
* swagger: GET /status/ping
Expand Down
5 changes: 5 additions & 0 deletions src/Sdk/GeocachingSdkInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,11 @@ public function getTrackableLogTypes(array $options = []);
*/
public function getOptedOutUsers(array $query, array $options = []);

/**
* @return \Geocaching\Lib\Adapters\GuzzleHttpClient
*/
public function getWherigoCartridge(string $guid, array $query = [], array $options = []);

/**
* @return \Geocaching\Lib\Adapters\GuzzleHttpClient
*/
Expand Down

0 comments on commit 74bb34a

Please sign in to comment.