Skip to content

Commit 9626e8f

Browse files
committed
getHQPromotionsMetadata -> getHQPromotions
1 parent 90975e7 commit 9626e8f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/api-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ $sdk->getGeotourGeocaches('GT123ABC', ['take' => 50]);
278278
## HQ Promotions
279279

280280
```php
281-
// Get promotion metadata (banners, events, etc.)
282-
$sdk->getHQPromotionsMetadata();
281+
// Get HQ promotions (banners, events, etc.)
282+
$sdk->getHQPromotions();
283283
```
284284

285285
## Reference Data & Statistics

src/GeocachingSdk.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,10 @@ public function getGeotourGeocaches(string $referenceCode, array $query = [], ar
10611061
// ==========================================
10621062

10631063
/**
1064-
* Get HQ promotions metadata.
1064+
* Get HQ promotions.
10651065
* GET /v1/HQPromotions/metadata
10661066
*/
1067-
public function getHQPromotionsMetadata(array $query = [], array $headers = []): ResponseInterface
1067+
public function getHQPromotions(array $query = [], array $headers = []): ResponseInterface
10681068
{
10691069
$queryString = $this->buildQueryString($query);
10701070
return $this->httpClient->get('/HQPromotions/metadata' . $queryString, $headers);

tests/GeocachingSdkTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public function testAllApiMethodsExist(): void
158158
'getGeotour',
159159
'getGeotourGeocaches',
160160

161-
// HQ Promotions API (New)
162-
'getHQPromotionsMetadata',
161+
// HQ Promotions API
162+
'getHQPromotions',
163163
];
164164

165165
foreach ($methods as $method) {

0 commit comments

Comments
 (0)