⚙️API Integrazione
Report
Schedulazione
2 min
{ "tab" "examples", "url" "https //api fsflt net/report/traffic reports/schedule/available", "name" "available reports for scheduling", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "number", "description" "customer code" }, { "name" "lang", "kind" "optional", "type" "string", "description" "en | it | de | es", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "0btcgb0hqt2z1z39elima", "code" "\[\n {\n \\"id\\" 28,\n \\"description\\" \\"blocked by category\\"\n },\n {\n \\"id\\" 29,\n \\"description\\" \\"blocked for macrocategory\\"\n }\n]", "language" "200" }, { "id" "xwakb6y5gox3husvb1zyw", "code" "{\n \\"code\\" 401,\n \\"message\\" \\"missing api key\\"\n}", "language" "401" }, { "id" "i9bmrn6b8q6voba3gfhfh", "language" "422", "code" "{\n \\"code\\" 422,\n \\"message\\" \\"validation error\\",\n \\"content\\" {\n \\"lang\\" \[\n \\"validation in\\"\n ]\n }\n}", "customlabel" "" } ], "selectedlanguageid" "0btcgb0hqt2z1z39elima" }, "examples" { "languages" \[ { "id" "4kds0gqkeu5nhola9qlta", "language" "curl", "code" "curl location request get 'https //api fsflt net/report/traffic reports/schedule/available' \\\\\n header 'x api key string' \\\\\n data '{\\"customer code\\" \\"number\\",\\"lang\\" \\"string\\"}'", "customlabel" "" }, { "id" " yiud8sndisjxmet5yiiw", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/report/traffic reports/schedule/available',\n 'headers' {\n 'x api key' 'string'\n },\n body '{\\"customer code\\" \\"number\\",\\"lang\\" \\"string\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "tmmcnddjbvuap0dwutvi3", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\";\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/report/traffic reports/schedule/available\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "ghtgw suansbs0h7shc7x", "language" "python", "code" "import requests\n\nurl = \\"https //api fsflt net/report/traffic reports/schedule/available\\"\n\npayload = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\"\nheaders = {\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "kuvn1 c2zy 1cnmrdqkvo", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/report/traffic reports/schedule/available\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" " yiud8sndisjxmet5yiiw" }, "description" "get the list of available reports for scheduling", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //api fsflt net/report/traffic reports/schedule/list", "name" "list active scheduling on customer", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "number", "description" "customer code" }, { "name" "lang", "kind" "optional", "type" "string", "description" "en | it | de | es", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "0btcgb0hqt2z1z39elima", "code" "\[\n {\n \\"id\\" \\"886 2\\",\n \\"reports id\\" \[\n 8,\n 28,\n 60\n ],\n \\"recivers\\" \[\n \\"example\@example com\\"\n ],\n \\"days\\" \[\n \\"0\\",\n \\"1\\",\n \\"2\\",\n \\"3\\",\n \\"4\\",\n \\"5\\",\n \\"6\\"\n ],\n \\"hours\\" \[\n \\"00\\",\n \\"23\\"\n ],\n \\"interval\\" 7,\n \\"profile name\\" \\"default\\"\n },\n {\n \\"id\\" \\"997 2\\",\n \\"reports id\\" \[\n 87\n ],\n \\"recivers\\" \[\n \\"example\@example com\\"\n ],\n \\"days\\" \[\n \\"1\\"\n ],\n \\"hours\\" \[\n \\"00\\",\n \\"23\\"\n ],\n \\"interval\\" 7,\n \\"profile name\\" \\"new 1\\"\n }\n]", "language" "200" }, { "id" "xwakb6y5gox3husvb1zyw", "code" "{\n \\"code\\" 401,\n \\"message\\" \\"missing api key\\"\n}", "language" "401" }, { "id" "i9bmrn6b8q6voba3gfhfh", "language" "422", "code" "{\n \\"code\\" 422,\n \\"message\\" \\"validation error\\",\n \\"content\\" {\n \\"lang\\" \[\n \\"validation in\\"\n ]\n }\n}", "customlabel" "" } ], "selectedlanguageid" "i9bmrn6b8q6voba3gfhfh" }, "examples" { "languages" \[ { "id" "twh7xadsj2104oaca mjr", "language" "curl", "code" "curl location request get 'https //api fsflt net/report/traffic reports/schedule/list' \\\\\n header 'x api key string' \\\\\n data '{\\"customer code\\" \\"number\\",\\"lang\\" \\"string\\"}'", "customlabel" "" }, { "id" "esdign7wpd2brbraqwkzw", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api fsflt net/report/traffic reports/schedule/list',\n 'headers' {\n 'x api key' 'string'\n },\n body '{\\"customer code\\" \\"number\\",\\"lang\\" \\"string\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" " 2xi jey5urhm15ljqsjx", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\";\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/report/traffic reports/schedule/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "dxir81dnhyq0hxzvexeiy", "language" "python", "code" "import requests\n\nurl = \\"https //api fsflt net/report/traffic reports/schedule/list\\"\n\npayload = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\"\nheaders = {\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "zxe6gjhtdjtintnekgi7i", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/report/traffic reports/schedule/list\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"lang\\\\\\" \\\\\\"string\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "twh7xadsj2104oaca mjr" }, "description" "gets the currently active reports schedule of a given customer", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //api fsflt net/report/traffic reports/schedule/add", "name" "add a report schedule", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "number", "description" "customer code" }, { "name" "reports id", "kind" "required", "type" "array", "description" "array of reports id to add in the schedule", "children" \[] }, { "name" "recivers", "kind" "required", "type" "array", "description" "array of emails to send the reports max 3", "children" \[] }, { "name" "days", "kind" "required", "type" "array", "description" "array of integer of days of the week to be included in the report \n0 stands for monday\n \n6 for sunday", "children" \[] }, { "name" "hours", "kind" "required", "type" "string", "description" "array of indeger of size 2 to specify the interval of the report e g \[00,23] stands for all day", "children" \[] }, { "name" "interval", "kind" "required", "type" "number", "description" "how often send the reports\n1 for once a day\n7 for once a week", "children" \[] }, { "name" "all profiles", "kind" "required", "type" "boolean", "description" "true for generate reports for all profiles", "children" \[] }, { "name" "profile code", "kind" "optional", "type" "integer", "description" "if all profiles is false, specify a profile to generate the reports", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "0btcgb0hqt2z1z39elima", "code" "{\n \\"id\\" \\"1195 2\\",\n \\"message\\" \\"schedule added successfully\\"\n}", "language" "200" }, { "id" "xwakb6y5gox3husvb1zyw", "code" "{\n \\"code\\" 401,\n \\"message\\" \\"missing api key\\"\n}", "language" "401" }, { "id" "i9bmrn6b8q6voba3gfhfh", "language" "422", "code" "{\n \\"code\\" 422,\n \\"message\\" \\"validation error\\",\n \\"content\\" {\n \\"lang\\" \[\n \\"validation in\\"\n ]\n }\n}", "customlabel" "" } ], "selectedlanguageid" "0btcgb0hqt2z1z39elima" }, "examples" { "languages" \[ { "id" "ll0uteffaijoss 69jpy7", "language" "curl", "code" "curl location 'https //api fsflt net/report/traffic reports/schedule/add' \\\\\n header 'x api key string' \\\\\n data '{\\"customer code\\" \\"number\\",\\"reports id\\" \\"array\\",\\"recivers\\" \\"array\\",\\"days\\" \\"array\\",\\"hours\\" \\"string\\",\\"interval\\" \\"number\\",\\"all profiles\\" \\"boolean\\",\\"profile code\\" \\"integer\\"}'", "customlabel" "" }, { "id" "c2c kyxa9zmygas9tz8wt", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/report/traffic reports/schedule/add',\n 'headers' {\n 'x api key' 'string'\n },\n body '{\\"customer code\\" \\"number\\",\\"reports id\\" \\"array\\",\\"recivers\\" \\"array\\",\\"days\\" \\"array\\",\\"hours\\" \\"string\\",\\"interval\\" \\"number\\",\\"all profiles\\" \\"boolean\\",\\"profile code\\" \\"integer\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "9co35gwwtsjs11s9zetmd", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"reports id\\\\\\" \\\\\\"array\\\\\\",\\\\\\"recivers\\\\\\" \\\\\\"array\\\\\\",\\\\\\"days\\\\\\" \\\\\\"array\\\\\\",\\\\\\"hours\\\\\\" \\\\\\"string\\\\\\",\\\\\\"interval\\\\\\" \\\\\\"number\\\\\\",\\\\\\"all profiles\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"profile code\\\\\\" \\\\\\"integer\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/report/traffic reports/schedule/add\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "k i67h cq9nv2c uyurce", "language" "python", "code" "import requests\n\nurl = \\"https //api fsflt net/report/traffic reports/schedule/add\\"\n\npayload = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"reports id\\\\\\" \\\\\\"array\\\\\\",\\\\\\"recivers\\\\\\" \\\\\\"array\\\\\\",\\\\\\"days\\\\\\" \\\\\\"array\\\\\\",\\\\\\"hours\\\\\\" \\\\\\"string\\\\\\",\\\\\\"interval\\\\\\" \\\\\\"number\\\\\\",\\\\\\"all profiles\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"profile code\\\\\\" \\\\\\"integer\\\\\\"}\\"\nheaders = {\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "10vuz2gjz1l3tkf4k6luy", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/report/traffic reports/schedule/add\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"reports id\\\\\\" \\\\\\"array\\\\\\",\\\\\\"recivers\\\\\\" \\\\\\"array\\\\\\",\\\\\\"days\\\\\\" \\\\\\"array\\\\\\",\\\\\\"hours\\\\\\" \\\\\\"string\\\\\\",\\\\\\"interval\\\\\\" \\\\\\"number\\\\\\",\\\\\\"all profiles\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"profile code\\\\\\" \\\\\\"integer\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "k i67h cq9nv2c uyurce" }, "description" "add a new schedule report on a specified customer", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //api fsflt net/report/traffic reports/schedule/remove", "name" "remove a report schedule", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "description" "api key for authorization" } ], "bodydataparameters" \[ { "kind" "required", "name" "customer code", "type" "number", "description" "customer code" }, { "name" "id", "kind" "required", "type" "string", "description" "id of the schedule report to remove", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "0btcgb0hqt2z1z39elima", "code" "{\n \\"message\\" \\"schedule removed successfully\\"\n}", "language" "200" }, { "id" "xwakb6y5gox3husvb1zyw", "code" "{\n \\"code\\" 401,\n \\"message\\" \\"missing api key\\"\n}", "language" "401" }, { "id" "i9bmrn6b8q6voba3gfhfh", "language" "422", "code" "{\n \\"code\\" 422,\n \\"message\\" \\"validation error\\",\n \\"content\\" {\n \\"lang\\" \[\n \\"validation in\\"\n ]\n }\n}", "customlabel" "" } ], "selectedlanguageid" "0btcgb0hqt2z1z39elima" }, "examples" { "languages" \[ { "id" "yh jtdmdqijdzw cj61m5", "language" "curl", "code" "curl location 'https //api fsflt net/report/traffic reports/schedule/remove' \\\\\n header 'x api key string' \\\\\n data '{\\"customer code\\" \\"number\\",\\"id\\" \\"string\\"}'", "customlabel" "" }, { "id" "li51qsyxxdbprvnwslzxi", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api fsflt net/report/traffic reports/schedule/remove',\n 'headers' {\n 'x api key' 'string'\n },\n body '{\\"customer code\\" \\"number\\",\\"id\\" \\"string\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "nnuisstslyaccnjelwhds", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"id\\\\\\" \\\\\\"string\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api fsflt net/report/traffic reports/schedule/remove\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "fbot0n4jjc4ckqdel jim", "language" "python", "code" "import requests\n\nurl = \\"https //api fsflt net/report/traffic reports/schedule/remove\\"\n\npayload = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"id\\\\\\" \\\\\\"string\\\\\\"}\\"\nheaders = {\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "xlhmbvfk bmlnpeeuzegy", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api fsflt net/report/traffic reports/schedule/remove\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"customer code\\\\\\" \\\\\\"number\\\\\\",\\\\\\"id\\\\\\" \\\\\\"string\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "yh jtdmdqijdzw cj61m5" }, "description" "remove a report scheduling from a customer", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }