title: Javascript Call Api "POST | PUT /events/..."
body: <p>I'm working to integrate some api into my website. I'd like to call it through javascript. The api documentation looks like this</p>
  
  <pre><code>POST | PUT /events/ws/api/... ["..." for security reasons]
  </code></pre>
  
  <p>How would I call something like this in Javascript? I think that it is a POST call, but how do I format a call for this?</p>
  
  <p>Thanks</p>