Skip to content

Commit

Permalink
Merge pull request #190 from HubSpot/feature/codegen
Browse files Browse the repository at this point in the history
Cms Domains (Codegen only)
  • Loading branch information
ksvirkou-hubspot authored Dec 6, 2022
2 parents b74c4a6 + 23cf020 commit 2761c58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions codegen/Cms/Domains/Api/DomainsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ public function getByIdRequest($domain_id)
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
}

$defaultHeaders = [];
if ($this->config->getUserAgent()) {
Expand Down Expand Up @@ -831,6 +835,10 @@ public function getPageRequest($created_at = null, $created_after = null, $creat
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
}

$defaultHeaders = [];
if ($this->config->getUserAgent()) {
Expand Down

0 comments on commit 2761c58

Please sign in to comment.