Doodle3D WiFi-Box

FREE
By doodle3d
Updated 4 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

Doodle3D WiFi-Box API Documentation

Simple REST API to makes almost all 3D printers wirelessly controllable using the Doodle3D WiFi-Box.

View API Details
printer
GETPrinter:print
info
GETInfo:status
GETPrinter:print

Make the printer print

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
wifibox-ipSTRING
REQUIRED
wifibox ipSTRING
REQUIREDIP adres of WiFi-Box on network
gcodeSTRING
REQUIREDSee: G-Code (please limit the amount of GCODE to 500 lines).
Optional Parameters
firstBOOLEAN
OPTIONALNormally gcode chunks will be concatenated, but if you set this to true the buffer is cleared first.
startBOOLEAN
OPTIONALOnly when this argument is true will printing be started.
Code Snippet
unirest.get("https://doodle3d-doodle3d-wifi-box.p.rapidapi.com/http://{wifibox ip}/d3dapi/printer/print?wifibox ip=192.168.5.1&gcode=G1+X100+Y100")
.header("X-RapidAPI-Host", "doodle3d-doodle3d-wifi-box.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://doodle3d-doodle3d-wifi-box.p.rapidapi.com/http://{wifibox ip}/d3dapi/printer/print
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://doodle3d-doodle3d-wifi-box.p.rapidapi.com/http://{wifibox ip}/d3dapi/printer/print?wifibox ip=192.168.5.1&gcode=G1+X100+Y100")
.header("X-RapidAPI-Host", "doodle3d-doodle3d-wifi-box.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication