API-Integration
Panel
Kategorien
2 min
{ "tab" "examples", "url" "https //api fsflt net/panel/categories/macro/list", "name" "macrocategory list", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "optional", "name" "lang", "type" "string", "description" "language for the category name, defaults en" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "sxu1sror nvebpvnijvph", "code" "{\n \\"code\\" 200,\n \\"content\\" \[\n {\n \\"macro code\\" 2,\n \\"macro name\\" \\"news\\"\n \\"module code\\" 1\n },\n {\n \\"macro code\\" 3,\n \\"macro name\\" \\"work\\"\n \\"module code\\" 2\n },\n ]\n}", "language" "200" }, { "id" "umrl6zupmve3k8hdivjfi", "code" "{\n \\"message\\" \\"invalid token or unauthorized admin\\"\n}", "language" "401" }, { "id" "yyjpjcsqcnzwz hljdw5f", "code" "{\r\n \\"code\\" 500,\r\n \\"message\\" \\"the given data was invalid \\",\r\n \\"errors\\" {\r\n \\"lang\\" \[\r\n \\"the lang must be one of the following types en, it, es, de\\"\r\n ]\r\n }\r\n}", "language" "500" } ], "selectedlanguageid" "sxu1sror nvebpvnijvph" }, "examples" { "languages" \[ { "id" "s 853sfibqzbh4djc7 fh", "language" "curl", "code" "curl location request get 'https //api fsflt net/panel/categories/macro/list' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"lang\\" \\"string\\"}'", "customlabel" "" }, { "id" "re0pksqjikpxj2 mfaxef", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/panel/categories/macro/list',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"lang\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "dnrgatighhfgsgaknoftt", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"lang\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/categories/macro/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "qftpjmqoyguqpdrmftt9l", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/categories/macro/list\\"\n\npayload = json dumps({\n \\"lang\\" \\"string\\"\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" "8xuzwf yi1fd1940tg4jj", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/categories/macro/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 \\"lang\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "s 853sfibqzbh4djc7 fh" }, "description" "get the macrocategory list", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "tab" "examples", "url" "https //api fsflt net/panel/categories/list", "name" "category list", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "optional", "name" "lang", "type" "string", "description" "language for the category name, defaults en" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "duncwqb6e3ohusyq1g ej", "code" "{\n \\"code\\" 200,\n \\"content\\" \[\n {\n \\"category code\\" \\"adult\\",\n \\"category name\\" \\"adult\\",\n \\"macro code\\" 4\n },\n {\n \\"category code\\" \\"publicite\\",\n \\"category name\\" \\"advertising\\",\n \\"macro code\\" 7\n },\n ]\n}", "language" "200" }, { "id" "dblzmflu52hrgzytlzbhm", "code" "{\n \\"message\\" \\"invalid token or unauthorized admin\\"\n}", "language" "401" }, { "id" "lwytt79fbptbzuwv yxbu", "code" "{\r\n \\"code\\" 500,\r\n \\"message\\" \\"the given data was invalid \\",\r\n \\"errors\\" {\r\n \\"lang\\" \[\r\n \\"the lang must be one of the following types en, it, es, de\\"\r\n ]\r\n }\r\n}", "language" "500" } ], "selectedlanguageid" "duncwqb6e3ohusyq1g ej" }, "examples" { "languages" \[ { "id" "fp6o4utqanlt f v7 4t", "code" "curl x 'get' \\\\\n 'https //api fsflt net/panel/categories/list' \\\\\n h 'accept application/json' \\\\\n h \\"content type application/json\\" \\\\\n h \\"x api key your api key\\" \\\\\n d '{your param}'", "language" "linux" }, { "id" "msewpkqsjcx6ycrq80vd4", "language" "curl", "code" "curl location request get 'https //api fsflt net/panel/categories/list' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"lang\\" \\"string\\"}'", "customlabel" "" }, { "id" "ssbmpq8qon 9cwnfqrlgh", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/panel/categories/list',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"lang\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "2gg3bt9429fbhqre2u52b", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"lang\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/categories/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "nwr6fiatc7pwxdmacu ut", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/categories/list\\"\n\npayload = json dumps({\n \\"lang\\" \\"string\\"\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" "r5bticd374kegijbzn9wk", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/categories/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 \\"lang\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "fp6o4utqanlt f v7 4t" }, "description" "get the category list", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } { "tab" "examples", "url" "https //api fsflt net/panel/categories/modules/", "name" "get modules", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "optional", "name" "lang", "type" "string", "description" "language for the category name, defaults en" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "duncwqb6e3ohusyq1g ej", "code" "{\n \\"code\\" 200,\n \\"content\\" \[\n {\n \\"module name\\" \\"\<b>content\</b> filter\\",\n \\"module code\\" 1\n },\n {\n \\"module name\\" \\"\<b>threat\</b> protection\\",\n \\"module code\\" 2\n },\n {\n \\"module name\\" \\"\<b>app\</b> blocker\\",\n \\"module code\\" 3\n }\n ]\n}", "language" "200" }, { "id" "dblzmflu52hrgzytlzbhm", "code" "{\n \\"message\\" \\"invalid token or unauthorized admin\\"\n}", "language" "401" }, { "id" "lwytt79fbptbzuwv yxbu", "code" "{\r\n \\"code\\" 500,\r\n \\"message\\" \\"the given data was invalid \\",\r\n \\"errors\\" {\r\n \\"lang\\" \[\r\n \\"the lang must be one of the following types en, it, es, de\\"\r\n ]\r\n }\r\n}", "language" "500" } ], "selectedlanguageid" "duncwqb6e3ohusyq1g ej" }, "examples" { "languages" \[ { "id" "imd zrja4xlaxzzqhu38a", "language" "curl", "code" "curl location request get 'https //api fsflt net/panel/categories/modules' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\\"lang\\" \\"string\\"}'", "customlabel" "" }, { "id" "xtz0jdthzyuzjfx0fd1jm", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/panel/categories/modules',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"lang\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "0dv7r3syennhj w 6pmgx", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"lang\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/panel/categories/modules\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "yvqfwhjskncffqbwn4uts", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api fsflt net/panel/categories/modules\\"\n\npayload = json dumps({\n \\"lang\\" \\"string\\"\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" "i uamamc85 6jjqpqfao2", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/panel/categories/modules\\")\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 \\"lang\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "imd zrja4xlaxzzqhu38a" }, "description" "get the protection modules (appblocker, contentfilter ecc)", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }