Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VimS committed Jul 9, 2021
1 parent c8ae51d commit 443772c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.0.0] - 2021-07-??
## [3.0.1] - 2021-07-09
### Added
### Changed
- revert standard api-host to api.deepl.com
### Removed

## [3.0.0] - 2021-07-09
####Major overhaul of the Library with some Breaking changes. Please read before updating!
### Added
- Support for PHP 8
Expand Down
2 changes: 1 addition & 1 deletion src/DeepL.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DeepL
* @param integer $apiVersion
* @param string $host
*/
public function __construct($authKey, $apiVersion = 2, $host = 'api-free.deepl.com')
public function __construct($authKey, $apiVersion = 2, $host = 'api.deepl.com')
{
$this->authKey = $authKey;
$this->apiVersion = $apiVersion;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/DeepLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testTranslateException()
public function testBuildBaseUrl()
{
$authKey = '123456';
$expectedUrl = 'https://api-free.deepl.com/v2/translate?auth_key='.$authKey;
$expectedUrl = 'https://api.deepl.com/v2/translate?auth_key='.$authKey;
$deepl = new DeepL($authKey);
$buildUrl = self::getMethod('\BabyMarkt\DeepL\DeepL', 'buildBaseUrl');
$return = $buildUrl->invokeArgs($deepl, array());
Expand Down

0 comments on commit 443772c

Please sign in to comment.