This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
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
10
16
####Major overhaul of the Library with some Breaking changes. Please read before updating!
11
17
### Added
12
18
- Support for PHP 8
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class DeepL
84
84
* @param integer $apiVersion
85
85
* @param string $host
86
86
*/
87
- public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api-free .deepl.com ' )
87
+ public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api.deepl.com ' )
88
88
{
89
89
$ this ->authKey = $ authKey ;
90
90
$ this ->apiVersion = $ apiVersion ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function testTranslateException()
53
53
public function testBuildBaseUrl ()
54
54
{
55
55
$ 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 ;
57
57
$ deepl = new DeepL ($ authKey );
58
58
$ buildUrl = self ::getMethod ('\BabyMarkt\DeepL\DeepL ' , 'buildBaseUrl ' );
59
59
$ return = $ buildUrl ->invokeArgs ($ deepl , array ());
You can’t perform that action at this time.
0 commit comments