Skip to content

Commit 8dae11a

Browse files
committed
gist snippet markers
1 parent 4b8c97d commit 8dae11a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Services/Examples/Monitor/WebQueryEndpointService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ public static function postWebQueryMethod(
2727
$apiClient = $clientService->getApiClient();
2828

2929
try {
30+
// Step 4 start
3031
$datasetApi = new DataSetApi($apiClient);
31-
3232
$webQueryResult = $datasetApi->postWebQuery(
3333
'monitor',
3434
'2.0',
3535
self::preparePostWebQuery($accountId, $filterStartDate, $filterEndDate)
3636
);
37+
// Step 4 end
3738

3839
} catch (ApiException $e) {
3940
$clientService->showErrorTemplate($e);
@@ -43,7 +44,7 @@ public static function postWebQueryMethod(
4344
// Cleaning the data from unsupported symbols
4445
return str_replace("'", "", $webQueryResult->getResult());
4546
}
46-
47+
// Step 3 start
4748
public static function preparePostWebQuery(string $accountId, string $filterStartDate, string $filterEndDate): WebQuery
4849
{
4950
$webQueryOptions = new WebQuery();
@@ -72,4 +73,5 @@ public static function preparePostWebQuery(string $accountId, string $filterStar
7273

7374
return $webQueryOptions;
7475
}
76+
// Step 3 end
7577
}

0 commit comments

Comments
 (0)