title: Issue with BTC-e API in App Script, method parameter
body: <p>I am trying to incorporate the BTC-e.com API in to a google docs spreadsheet.</p>
  
  <p>The API documentation is here: <a href="https://btc-e.com/api/documentation" rel="nofollow">https://btc-e.com/api/documentation</a></p>
  
  <blockquote>
    <p><strong>The method name is sent via POST parameter method.</strong></p>
  </blockquote>
  
  <p>As the <strong>URLFetchApp</strong> requires me to set the type of request as POST by a parameter method and I then have another parameter called method to be set as getInfo.</p>
  
  <p>How can I go about setting the fetch method as POST and have the API parameter method as getInfo.</p>
  
  <p>Below is the function this relates too. Also I am sure there a more issues in my work I am yet to find.</p>
  
  <pre><code>function inventory() {
    var nonce=Number(SpreadsheetApp.getActiveSheet().getRange('K2').getValue());
    var token=SpreadsheetApp.getActiveSheet().getRange('K1').getValue();
    var tokenEndpoint = "https://btc-e.com/tapi";
    var sign= 'TEMP'
  
    var head = {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Key': token,
      'Sign': sign
  
      }
  
    var params = {
  
      method : "POST",
      method : "getInfo",
      headers:  head,
      contentType: 'application/x-www-form-urlencoded',
      method : "getInfo",
      nonce: nonce
  
      }
  
  
    var request = UrlFetchApp.getRequest(tokenEndpoint, params); 
    var response = UrlFetchApp.fetch(tokenEndpoint, params); 
    var response2=String(response);
    SpreadsheetApp.getActiveSheet().getRange('K2').setValue(nonce+1);
    SpreadsheetApp.getActiveSheet().getRange('I16').setValue(response2);
    SpreadsheetApp.getActiveSheet().getRange('I17').setValue(nonce);
  
  }
  </code></pre>
  
  <p>This just yields the error</p>
  
  <blockquote>
    <p><strong>Attribute provided with invalid value: method</strong></p>
  </blockquote>
  
  <p>Thanks,</p>
  
  <p>Steve</p>
  
  <p>PS: First time posting, I tried to get the format correct. </p>