Skip to content

Commit 73f830c

Browse files
committed
Added method to get hosted page by id
1 parent a9c21cd commit 73f830c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Api/HostedPage.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
class HostedPage extends Client
99
{
10+
public function getHostedPageById(string $hostedPageId): array
11+
{
12+
$response = $this->sendRequest('GET', sprintf('hostedpages/%s', $hostedPageId));
13+
14+
return $this->processResponse($response);
15+
}
16+
1017
public function listHostedPages(): array
1118
{
1219
$response = $this->sendRequest('GET', 'hostedpages', ['content-type' => 'application/json'], json_encode($data));

0 commit comments

Comments
 (0)