Sending Post Request

What is the simplest way to send a post request in FuseJS? I have tried a bunch of differnt ways and am stuck. After 2 days of searching and trying differnt things I am coming ot the forums in hopes of some educaitn and answers.

Heres what I have. I am using a Particle Photon micro controller and am looking to control it using a POST request. Any help and direction would be greatly appreciated.

Here is what works when inside a webpage.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ var appHeading = “Led Control”;

var core1ID = "53ff6a06666757482439xxxx";

var accessToken = "8b83c6bddbf8c73f0e835362cff88e90c3xxxxxx";
var baseURL = "";

function on(){

        var POSTurl = baseURL + core1ID + "/on";

            type: "POST",
            url: POSTurl,
            data: {
              access_token: accessToken,
              args: "pulse"

fetch(POSTurl, {
  method: 'post',
  headers: {...}, // set your headers
  body: JSON.stringify({
    access_token: accessToken,
    args: 'pulse'

Learn more about fetch: