⚙️API Integration
Panel
Devices
1 min
{ "name" "get devices", "method" "get", "url" "https //api fsflt net/panel/device/list", "description" "gets he available list of devices of a given customer", "tab" "examples", "examples" { "languages" \[ { "id" "cuptwy1p1n3xp f fux3k", "language" "curl", "code" "curl location request get 'https //api fsflt net/panel/device/list' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"customer code\\" \\"number\\"}'", "customlabel" "" }, { "id" "rfg5aast t6ey3zn slwq", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/panel/device/list',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"customer code\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "03 28bf9210nomjlh lq ", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"customer code\\" \\"number\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/device/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "q3x9iik5pphs4klhiw n ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/device/list\\"\n\npayload = json dumps({\n \\"customer code\\" \\"number\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "l9ehtnskavz1lyf2fio5y", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/device/list\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"customer code\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "cuptwy1p1n3xp f fux3k" }, "results" { "languages" \[ { "id" "3jg60viv7ctpw8lafam0m", "language" "200", "customlabel" "", "code" "{\n \\"code\\" 200,\n \\"content\\" \[\n {\n \\"device id\\" \\"56829ba5\\",\n \\"device username\\" \\"client williamson\\",\n \\"device type\\" \\"clientshield\\"\n },\n {\n \\"device id\\" \\"4321 2\\",\n \\"device username\\" \\"testdevice\@email com\\",\n \\"device type\\" \\"cloudbox\\"\n }\n ]\n}" } ], "selectedlanguageid" "3jg60viv7ctpw8lafam0m" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "customer code", "kind" "required", "type" "number", "description" "id of the customer, ex 1234" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }