title: API key is invalid Yandex Translate
body: <p>I use Yandex-transleyt, and upon request receive an answer "API key is invalid." It just received the keys. Council on the format of the query, this topic does not help (<a href="https://stackoverflow.com/questions/25878518/yandex-api-translator-error-401-api-key-is-invalid">Yandex API Translator error - 401 API key is invalid</a>).
  Request format as a guide: <a href="https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/" rel="nofollow noreferrer">https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/</a></p>
  
  <p>My request:</p>
  
  <pre><code>var url = "https://translate.yandex.net/api/v1.5/tr.json/translate?";
  var keyAPI = "trnsl.1.1.20161125T152027Z.65e73e18a60f3051.7764a7a11754995544ad557501df9e14abbfb6e0";
  
  var params = "key=" + keyAPI + "&amp;text=" + textApi + "&amp;lang=" + langApi;
  var vm = this;
  
  $http({
      url: url,
      method: 'POST',
      params: params
  });
  </code></pre>
  
  <p>Maybe the wrong request parameters?</p>
  
  <p>The complete code <a href="http://jsbin.com/sejupidabi/edit?html,js,console,output" rel="nofollow noreferrer">here</a> or here:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> var app = angular.module('jsbin', []);
  
  app.controller('DemoCtrl', function($scope, $http) {
  
   $scope.SendData = function() {
    // тут данные
    var textApi = 'Hello';
    var langApi = 'en-ru';
    var url = "https://translate.yandex.net/api/v1.5/tr.json/translate?";
    var keyAPI = "trnsl.1.1.20161125T152027Z.65e73e18a60f3051.7764a7a11754995544ad557501df9e14abbfb6e0";
  
    var params = "key=" + keyAPI + "&amp;text=" + textApi + "&amp;lang=" + langApi;
    var vm = this;
  
    $http({
      url: url,
      method: 'POST',
      params: params
     })
     .success(function(data, headers, status, config) {
      $scope.PostDataResponse = data;
      vm.data = data;
      console.log(data);
     })
     .error(function(data, headers, status, config) {
      $scope.ResponseDetails = "Data: " + data +
       "&lt;hr /&gt;status: " + status +
       "&lt;hr /&gt;config: " + config;
      console.log("error1");
      console.log(data);
      console.log(status);
      console.log(config);
     });
   };
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
     &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"&gt;&lt;/script&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Angular JS&lt;/title&gt;
     &lt;/head&gt;
  &lt;body ng-app="jsbin"&gt;
    &lt;div ng-controller="DemoCtrl as vm"&gt;
      
            &lt;button ng-click="SendData()"&gt;Send&lt;/button&gt;
      &lt;br&gt;
        Data:  {{PostDataResponse}}&lt;br&gt;
      {{vm.data}}
      {{vm.PostDataResponse}}
     Data:  {{scope.PostDataResponse}}
      {{vm.data}}
    &lt;/div&gt;
    &lt;/body&gt;
    &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>