Translator Text API | Microsoft Azure | Always ERROR 401000
问题 I tried to test Microsoft Translator API Text v3.0 but failed with 401 Access denied. I do standard cURL requests (HTTP POST) using PHP 7.3. $key = "************************"; // secret key here (from the Azure Portal) $host = "https://api.cognitive.microsofttranslator.com"; $path = "/translate?api-version=3.0"; $params = "&to=en&from=bg"; $text = "За мен лично хора, които задават такива въпроси са несъобразителни."; $requestBody = array( array( 'Text' => $text, ), ); $content = json_encode(