Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 443772c

Browse files
committed
1 parent c8ae51d commit 443772c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
## [3.0.0] - 2021-07-??
9+
## [3.0.1] - 2021-07-09
10+
### Added
11+
### Changed
12+
- revert standard api-host to api.deepl.com
13+
### Removed
14+
15+
## [3.0.0] - 2021-07-09
1016
####Major overhaul of the Library with some Breaking changes. Please read before updating!
1117
### Added
1218
- Support for PHP 8

src/DeepL.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class DeepL
8484
* @param integer $apiVersion
8585
* @param string $host
8686
*/
87-
public function __construct($authKey, $apiVersion = 2, $host = 'api-free.deepl.com')
87+
public function __construct($authKey, $apiVersion = 2, $host = 'api.deepl.com')
8888
{
8989
$this->authKey = $authKey;
9090
$this->apiVersion = $apiVersion;

tests/unit/DeepLTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testTranslateException()
5353
public function testBuildBaseUrl()
5454
{
5555
$authKey = '123456';
56-
$expectedUrl = 'https://api-free.deepl.com/v2/translate?auth_key='.$authKey;
56+
$expectedUrl = 'https://api.deepl.com/v2/translate?auth_key='.$authKey;
5757
$deepl = new DeepL($authKey);
5858
$buildUrl = self::getMethod('\BabyMarkt\DeepL\DeepL', 'buildBaseUrl');
5959
$return = $buildUrl->invokeArgs($deepl, array());

0 commit comments

Comments
 (0)