particle.io API communication with Mikrotik

In the event that you want to control or get some data from a Particle device such as the Photon or Electron the recent Mikrotik RC added the http-post feature and the following will allow you to send a command or fetch a variable from your Particle device.

/tool fetch mode=https http-method=post url=https://api.particle.io/v1/devices/YourDeviceID/YourFunction http-data="access_token=YourAccessToken&params=YourCommand"

I built a 3G controller utilizing the Electron that allows me to reboot equipment at sites where the Internet modem may have become unresponsive and needs a reboot. I also control lights in my house with the Mikrotik scheduler that commands the lights via this API command. Anyway I thought I would share in case anyone else would like to do this.