title: get access token via javascript
body: <p>I want to get access token via javascript using my refresh token.So this is my code:</p>
  
  <pre><code>$.ajax({    
              type: "POST",
              contentType: "application/x-www-form-urlencoded",
              url: "https://accounts.google.com/o/oauth2/token",
              data: "client_id=" + CLIENT_ID + "&amp;client_secret=" + CLIENT_SECRET + "&amp;refresh_token=" + REFRESH_TOKEN + "&amp;grant_type=refresh_token",
              dataType: "json",
              success: function (data) {
                  alert(data.d);
              }
          });
  </code></pre>
  
  <p>But i don't understand google return 400 bad request.Please help me</p>