Skip to content

Commit

Permalink
Merge pull request #14 from HubSpot/v1.3.3
Browse files Browse the repository at this point in the history
up version + fix config
  • Loading branch information
ksvirkou-hubspot authored Aug 25, 2020
2 parents 4f40c5b + 60e4308 commit 2f23811
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/1.3.1...HEAD)
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/1.3.3...HEAD)

## [1.3.3](https://github.com/HubSpot/hubspot-api-php/releases/tag/1.3.3) - 2020-08-25

### fixed
- downgreate codegen to 1.3.1
- Fixed HubSpot/Configs

## [1.3.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/1.3.1) - 2020-06-25

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubspot/api-client",
"version": "1.3.1",
"version": "1.3.3",
"description": "Hubspot API client",
"keywords": [
"hubspot",
Expand Down
9 changes: 3 additions & 6 deletions lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ public function convertToClientConfig($clientConfigClassName)
{
/** @var Configuration $clientConfig */
$clientConfig = new $clientConfigClassName();
if (null !== $this->apiKey) {
$clientConfig->setApiKey(static::API_KEY_IDENTIFIER, $this->apiKey);
}
if (null !== $this->accessToken) {
$clientConfig->setAccessToken($this->accessToken);
}

$clientConfig->setApiKey(static::API_KEY_IDENTIFIER, $this->apiKey);
$clientConfig->setAccessToken($this->accessToken);

$clientConfig->setUserAgent($this->userAgent);

Expand Down

0 comments on commit 2f23811

Please sign in to comment.