title: How do I use the "POST" method on an AJAX call in JavaScript?
body: <p>I'm using the (free) Face++ API that's returns some good data based on uploaded pictures and/or picture URLs. I'm taking a class now that has introduced us to ajax calls using jQuery, but so far, we only use method: "GET"</p>
  
  <p><strong>Can anyone help me understand HOW to use the "POST" method for an ajax call in jQuery?</strong></p>
  
  <p>W3schools.com has demonstrated the call like this:</p>
  
  <pre><code>$.post(URL,data,callback);
  </code></pre>
  
  <p>However, I'm more accustomed to seeing the call made a little differently...perhaps like this:</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>$.ajax({
  
    url: URL_request,
    method: "POST"
  
  }).done(callback);</code></pre>
  </div>
  </div>
  </p>
  
  <p>Face++ is asking that I pass it some information...
  "api_key"
  "face_tokens"
  "landmark"
  ...and some other stuff that is specific to that API. My question is:</p>
  
  <p><strong>Where/How do I pass that data to the site?</strong></p>
  
  <p>...should the known information be passed as concatenations to the URL_request?
  ...is the known information hard coded in the object that's passed to ajax?</p>