NittyGritty

http-request-GET

Nov 24th, 2024
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "1223d4fe.449f4b",
  4.         "type": "tab",
  5.         "label": "http-request Get",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "3a5562c4.d8c206",
  11.         "type": "http request",
  12.         "z": "1223d4fe.449f4b",
  13.         "name": "",
  14.         "method": "use",
  15.         "ret": "txt",
  16.         "paytoqs": "ignore",
  17.         "url": "",
  18.         "tls": "",
  19.         "persist": false,
  20.         "proxy": "",
  21.         "insecureHTTPParser": false,
  22.         "authType": "",
  23.         "senderr": false,
  24.         "headers": [],
  25.         "x": 370,
  26.         "y": 100,
  27.         "wires": [
  28.             [
  29.                 "48d45ba0.3b68c4"
  30.             ]
  31.         ]
  32.     },
  33.     {
  34.         "id": "a6e03add.cbea8",
  35.         "type": "inject",
  36.         "z": "1223d4fe.449f4b",
  37.         "name": "make request",
  38.         "props": [
  39.             {
  40.                 "p": "url",
  41.                 "v": "http://jsonplaceholder.typicode.com/posts",
  42.                 "vt": "str"
  43.             },
  44.             {
  45.                 "p": "method",
  46.                 "v": "GET",
  47.                 "vt": "str"
  48.             }
  49.         ],
  50.         "repeat": "",
  51.         "crontab": "",
  52.         "once": false,
  53.         "onceDelay": 0.1,
  54.         "topic": "",
  55.         "x": 150,
  56.         "y": 60,
  57.         "wires": [
  58.             [
  59.                 "63de6e51448c0942"
  60.             ]
  61.         ]
  62.     },
  63.     {
  64.         "id": "48d45ba0.3b68c4",
  65.         "type": "debug",
  66.         "z": "1223d4fe.449f4b",
  67.         "name": "",
  68.         "active": true,
  69.         "tosidebar": true,
  70.         "console": false,
  71.         "tostatus": false,
  72.         "complete": "true",
  73.         "x": 710,
  74.         "y": 60,
  75.         "wires": []
  76.     },
  77.     {
  78.         "id": "b2e12e99.d368e",
  79.         "type": "html",
  80.         "z": "1223d4fe.449f4b",
  81.         "name": "",
  82.         "property": "payload",
  83.         "outproperty": "payload",
  84.         "tag": "div",
  85.         "ret": "html",
  86.         "as": "single",
  87.         "x": 550,
  88.         "y": 380,
  89.         "wires": [
  90.             [
  91.                 "87b7038e.4e6fd8"
  92.             ]
  93.         ]
  94.     },
  95.     {
  96.         "id": "40c7eec6.7678b8",
  97.         "type": "inject",
  98.         "z": "1223d4fe.449f4b",
  99.         "name": "username/password",
  100.         "props": [
  101.             {
  102.                 "p": "payload",
  103.                 "v": "Basic cG9zdG1hbjpwYXNzd29yZA==",
  104.                 "vt": "str"
  105.             },
  106.             {
  107.                 "p": "topic",
  108.                 "v": "",
  109.                 "vt": "str"
  110.             }
  111.         ],
  112.         "repeat": "",
  113.         "crontab": "",
  114.         "once": false,
  115.         "onceDelay": 0.1,
  116.         "topic": "",
  117.         "payload": "Basic cG9zdG1hbjpwYXNzd29yZA==",
  118.         "payloadType": "str",
  119.         "x": 110,
  120.         "y": 920,
  121.         "wires": [
  122.             [
  123.                 "83ab11cf.d4e498"
  124.             ]
  125.         ]
  126.     },
  127.     {
  128.         "id": "f4da489b.4fd4f8",
  129.         "type": "http request",
  130.         "z": "1223d4fe.449f4b",
  131.         "name": "",
  132.         "method": "GET",
  133.         "ret": "txt",
  134.         "paytoqs": "ignore",
  135.         "url": "https://postman-echo.com/basic-auth",
  136.         "tls": "",
  137.         "persist": false,
  138.         "proxy": "",
  139.         "insecureHTTPParser": false,
  140.         "authType": "",
  141.         "senderr": false,
  142.         "headers": [],
  143.         "x": 450,
  144.         "y": 960,
  145.         "wires": [
  146.             [
  147.                 "e74e3ac0.7e098"
  148.             ]
  149.         ]
  150.     },
  151.     {
  152.         "id": "e74e3ac0.7e098",
  153.         "type": "debug",
  154.         "z": "1223d4fe.449f4b",
  155.         "name": "",
  156.         "active": true,
  157.         "tosidebar": true,
  158.         "console": false,
  159.         "tostatus": false,
  160.         "complete": "true",
  161.         "x": 710,
  162.         "y": 960,
  163.         "wires": []
  164.     },
  165.     {
  166.         "id": "eb688d74.2baac8",
  167.         "type": "inject",
  168.         "z": "1223d4fe.449f4b",
  169.         "name": "start",
  170.         "props": [
  171.             {
  172.                 "p": "payload",
  173.                 "v": "postman:password",
  174.                 "vt": "str"
  175.             },
  176.             {
  177.                 "p": "topic",
  178.                 "v": "",
  179.                 "vt": "str"
  180.             }
  181.         ],
  182.         "repeat": "",
  183.         "crontab": "",
  184.         "once": false,
  185.         "onceDelay": 0.1,
  186.         "topic": "",
  187.         "payload": "postman:password",
  188.         "payloadType": "str",
  189.         "x": 130,
  190.         "y": 1080,
  191.         "wires": [
  192.             [
  193.                 "75d0f4ba.cc777c"
  194.             ]
  195.         ]
  196.     },
  197.     {
  198.         "id": "a97aef59.20c1",
  199.         "type": "change",
  200.         "z": "1223d4fe.449f4b",
  201.         "name": "",
  202.         "rules": [
  203.             {
  204.                 "t": "set",
  205.                 "p": "url",
  206.                 "pt": "msg",
  207.                 "to": "http://www.google.com:",
  208.                 "tot": "str"
  209.             },
  210.             {
  211.                 "t": "set",
  212.                 "p": "method",
  213.                 "pt": "msg",
  214.                 "to": "GET",
  215.                 "tot": "str"
  216.             }
  217.         ],
  218.         "action": "",
  219.         "property": "",
  220.         "from": "",
  221.         "to": "",
  222.         "reg": false,
  223.         "x": 380,
  224.         "y": 160,
  225.         "wires": [
  226.             [
  227.                 "fbd6fa56691b89e3"
  228.             ]
  229.         ]
  230.     },
  231.     {
  232.         "id": "d180a009.0e8438",
  233.         "type": "inject",
  234.         "z": "1223d4fe.449f4b",
  235.         "name": "make request",
  236.         "repeat": "",
  237.         "crontab": "",
  238.         "once": false,
  239.         "onceDelay": 0.1,
  240.         "topic": "",
  241.         "payload": "",
  242.         "payloadType": "date",
  243.         "x": 150,
  244.         "y": 160,
  245.         "wires": [
  246.             [
  247.                 "a97aef59.20c1"
  248.             ]
  249.         ]
  250.     },
  251.     {
  252.         "id": "3fc88bb2.6d47c4",
  253.         "type": "http request",
  254.         "z": "1223d4fe.449f4b",
  255.         "name": "",
  256.         "method": "use",
  257.         "ret": "txt",
  258.         "url": "",
  259.         "tls": "",
  260.         "x": 390,
  261.         "y": 220,
  262.         "wires": [
  263.             [
  264.                 "69b22446.d5e7ec"
  265.             ]
  266.         ]
  267.     },
  268.     {
  269.         "id": "69b22446.d5e7ec",
  270.         "type": "debug",
  271.         "z": "1223d4fe.449f4b",
  272.         "name": "",
  273.         "active": true,
  274.         "tosidebar": true,
  275.         "console": false,
  276.         "tostatus": false,
  277.         "complete": "true",
  278.         "x": 710,
  279.         "y": 220,
  280.         "wires": []
  281.     },
  282.     {
  283.         "id": "2c4b4317.b66284",
  284.         "type": "inject",
  285.         "z": "1223d4fe.449f4b",
  286.         "name": "make request",
  287.         "props": [
  288.             {
  289.                 "p": "url",
  290.                 "v": "http://jsonplaceholder.typicode.com/",
  291.                 "vt": "str"
  292.             },
  293.             {
  294.                 "p": "method",
  295.                 "v": "GET",
  296.                 "vt": "str"
  297.             }
  298.         ],
  299.         "repeat": "",
  300.         "crontab": "",
  301.         "once": false,
  302.         "onceDelay": 0.1,
  303.         "topic": "",
  304.         "x": 150,
  305.         "y": 380,
  306.         "wires": [
  307.             [
  308.                 "e0f8c5e7b0835864"
  309.             ]
  310.         ]
  311.     },
  312.     {
  313.         "id": "417c365c.2325a",
  314.         "type": "http request",
  315.         "z": "1223d4fe.449f4b",
  316.         "name": "",
  317.         "method": "GET",
  318.         "ret": "txt",
  319.         "paytoqs": "ignore",
  320.         "url": "http://jsonplaceholder.typicode.com/",
  321.         "tls": "",
  322.         "persist": false,
  323.         "proxy": "",
  324.         "insecureHTTPParser": false,
  325.         "authType": "",
  326.         "senderr": false,
  327.         "headers": [],
  328.         "x": 370,
  329.         "y": 380,
  330.         "wires": [
  331.             [
  332.                 "b2e12e99.d368e"
  333.             ]
  334.         ]
  335.     },
  336.     {
  337.         "id": "87b7038e.4e6fd8",
  338.         "type": "debug",
  339.         "z": "1223d4fe.449f4b",
  340.         "name": "",
  341.         "active": true,
  342.         "tosidebar": true,
  343.         "console": false,
  344.         "tostatus": false,
  345.         "complete": "true",
  346.         "x": 710,
  347.         "y": 380,
  348.         "wires": []
  349.     },
  350.     {
  351.         "id": "193d0e24.0c9e0a",
  352.         "type": "inject",
  353.         "z": "1223d4fe.449f4b",
  354.         "name": "make request",
  355.         "props": [
  356.             {
  357.                 "p": "query",
  358.                 "v": "posts?userId=1",
  359.                 "vt": "str"
  360.             }
  361.         ],
  362.         "repeat": "",
  363.         "crontab": "",
  364.         "once": false,
  365.         "onceDelay": 0.1,
  366.         "topic": "",
  367.         "x": 150,
  368.         "y": 440,
  369.         "wires": [
  370.             [
  371.                 "63c89f05ab2ef027"
  372.             ]
  373.         ]
  374.     },
  375.     {
  376.         "id": "2df5ab2f.f18dcc",
  377.         "type": "http request",
  378.         "z": "1223d4fe.449f4b",
  379.         "name": "",
  380.         "method": "GET",
  381.         "ret": "txt",
  382.         "url": "http://jsonplaceholder.typicode.com/{{{query}}}",
  383.         "tls": "",
  384.         "x": 350,
  385.         "y": 520,
  386.         "wires": [
  387.             [
  388.                 "2a1bdf74.4c6d58"
  389.             ]
  390.         ]
  391.     },
  392.     {
  393.         "id": "2a1bdf74.4c6d58",
  394.         "type": "debug",
  395.         "z": "1223d4fe.449f4b",
  396.         "name": "",
  397.         "active": true,
  398.         "tosidebar": true,
  399.         "console": false,
  400.         "tostatus": false,
  401.         "complete": "true",
  402.         "x": 710,
  403.         "y": 520,
  404.         "wires": []
  405.     },
  406.     {
  407.         "id": "286d1fc2.286fb8",
  408.         "type": "change",
  409.         "z": "1223d4fe.449f4b",
  410.         "name": "",
  411.         "rules": [
  412.             {
  413.                 "t": "set",
  414.                 "p": "query",
  415.                 "pt": "msg",
  416.                 "to": "payload",
  417.                 "tot": "msg"
  418.             }
  419.         ],
  420.         "action": "",
  421.         "property": "",
  422.         "from": "",
  423.         "to": "",
  424.         "reg": false,
  425.         "x": 360,
  426.         "y": 480,
  427.         "wires": [
  428.             [
  429.                 "2df5ab2f.f18dcc"
  430.             ]
  431.         ]
  432.     },
  433.     {
  434.         "id": "5baa64d4.9a861c",
  435.         "type": "function",
  436.         "z": "1223d4fe.449f4b",
  437.         "name": "set headers",
  438.         "func": "msg.payload = \"data to post\";\nmsg.headers = {};\nmsg.headers['Authorization'] = 'Basic cG9zdG1hbjpwYXNzd29yZA==';\nreturn msg;\n",
  439.         "outputs": 1,
  440.         "timeout": "",
  441.         "noerr": 0,
  442.         "initialize": "",
  443.         "finalize": "",
  444.         "libs": [],
  445.         "x": 290,
  446.         "y": 1020,
  447.         "wires": [
  448.             []
  449.         ]
  450.     },
  451.     {
  452.         "id": "83ab11cf.d4e498",
  453.         "type": "change",
  454.         "z": "1223d4fe.449f4b",
  455.         "name": "",
  456.         "rules": [
  457.             {
  458.                 "t": "set",
  459.                 "p": "headers['Authorization']",
  460.                 "pt": "msg",
  461.                 "to": "payload",
  462.                 "tot": "msg"
  463.             },
  464.             {
  465.                 "t": "set",
  466.                 "p": "url",
  467.                 "pt": "msg",
  468.                 "to": "https://postman-echo.com/basic-auth",
  469.                 "tot": "str"
  470.             },
  471.             {
  472.                 "t": "set",
  473.                 "p": "method",
  474.                 "pt": "msg",
  475.                 "to": "GET",
  476.                 "tot": "str"
  477.             }
  478.         ],
  479.         "action": "",
  480.         "property": "",
  481.         "from": "",
  482.         "to": "",
  483.         "reg": false,
  484.         "x": 440,
  485.         "y": 900,
  486.         "wires": [
  487.             [
  488.                 "e74e3ac0.7e098",
  489.                 "03b923b0709b6778"
  490.             ]
  491.         ]
  492.     },
  493.     {
  494.         "id": "75d0f4ba.cc777c",
  495.         "type": "base64",
  496.         "z": "1223d4fe.449f4b",
  497.         "name": "",
  498.         "action": "str",
  499.         "property": "payload",
  500.         "x": 280,
  501.         "y": 1080,
  502.         "wires": [
  503.             [
  504.                 "1b5e75cb.eafcba"
  505.             ]
  506.         ]
  507.     },
  508.     {
  509.         "id": "1b5e75cb.eafcba",
  510.         "type": "debug",
  511.         "z": "1223d4fe.449f4b",
  512.         "name": "",
  513.         "active": true,
  514.         "tosidebar": true,
  515.         "console": false,
  516.         "tostatus": false,
  517.         "complete": "false",
  518.         "x": 750,
  519.         "y": 1080,
  520.         "wires": []
  521.     },
  522.     {
  523.         "id": "ed2080da.db06f8",
  524.         "type": "inject",
  525.         "z": "1223d4fe.449f4b",
  526.         "name": "start flow",
  527.         "props": [
  528.             {
  529.                 "p": "payload"
  530.             },
  531.             {
  532.                 "p": "url",
  533.                 "v": "https://postman-echo.com/basic-auth",
  534.                 "vt": "str"
  535.             },
  536.             {
  537.                 "p": "method",
  538.                 "v": "GET",
  539.                 "vt": "str"
  540.             }
  541.         ],
  542.         "repeat": "",
  543.         "crontab": "",
  544.         "once": false,
  545.         "onceDelay": 0.1,
  546.         "topic": "",
  547.         "payload": "Basic cG9zdG1hbjpwYXNzd29yZA==",
  548.         "payloadType": "str",
  549.         "x": 140,
  550.         "y": 800,
  551.         "wires": [
  552.             [
  553.                 "d1ddab718f0e8535"
  554.             ]
  555.         ]
  556.     },
  557.     {
  558.         "id": "f8f09bc2.75bd88",
  559.         "type": "http request",
  560.         "z": "1223d4fe.449f4b",
  561.         "name": "authentication",
  562.         "method": "GET",
  563.         "ret": "txt",
  564.         "url": "https://postman-echo.com/basic-auth",
  565.         "tls": "",
  566.         "x": 380,
  567.         "y": 800,
  568.         "wires": [
  569.             [
  570.                 "5d51eade.d4a07c"
  571.             ]
  572.         ]
  573.     },
  574.     {
  575.         "id": "5d51eade.d4a07c",
  576.         "type": "debug",
  577.         "z": "1223d4fe.449f4b",
  578.         "name": "",
  579.         "active": true,
  580.         "tosidebar": true,
  581.         "console": false,
  582.         "tostatus": false,
  583.         "complete": "true",
  584.         "x": 710,
  585.         "y": 800,
  586.         "wires": []
  587.     },
  588.     {
  589.         "id": "5118374f.b054c",
  590.         "type": "inject",
  591.         "z": "1223d4fe.449f4b",
  592.         "name": "Request",
  593.         "props": [
  594.             {
  595.                 "p": "query",
  596.                 "v": "posts?userId=1",
  597.                 "vt": "str"
  598.             }
  599.         ],
  600.         "repeat": "",
  601.         "crontab": "",
  602.         "once": false,
  603.         "onceDelay": 0.1,
  604.         "topic": "",
  605.         "x": 140,
  606.         "y": 580,
  607.         "wires": [
  608.             [
  609.                 "2fbb0e08b381a3f8"
  610.             ]
  611.         ]
  612.     },
  613.     {
  614.         "id": "a601a0f9.f650e8",
  615.         "type": "http request",
  616.         "z": "1223d4fe.449f4b",
  617.         "name": "Request JSON Data",
  618.         "method": "GET",
  619.         "ret": "obj",
  620.         "paytoqs": "ignore",
  621.         "url": "http://jsonplaceholder.typicode.com/{{{query}}}",
  622.         "tls": "",
  623.         "persist": false,
  624.         "proxy": "",
  625.         "insecureHTTPParser": false,
  626.         "authType": "",
  627.         "senderr": false,
  628.         "headers": [],
  629.         "x": 180,
  630.         "y": 640,
  631.         "wires": [
  632.             [
  633.                 "3c30ab95.191484"
  634.             ]
  635.         ]
  636.     },
  637.     {
  638.         "id": "3c30ab95.191484",
  639.         "type": "change",
  640.         "z": "1223d4fe.449f4b",
  641.         "name": "",
  642.         "rules": [
  643.             {
  644.                 "t": "set",
  645.                 "p": "Title",
  646.                 "pt": "msg",
  647.                 "to": "payload[0].title",
  648.                 "tot": "msg"
  649.             }
  650.         ],
  651.         "action": "",
  652.         "property": "",
  653.         "from": "",
  654.         "to": "",
  655.         "reg": false,
  656.         "x": 450,
  657.         "y": 640,
  658.         "wires": [
  659.             [
  660.                 "1222c073.7460b"
  661.             ]
  662.         ]
  663.     },
  664.     {
  665.         "id": "1222c073.7460b",
  666.         "type": "debug",
  667.         "z": "1223d4fe.449f4b",
  668.         "name": "",
  669.         "active": true,
  670.         "tosidebar": true,
  671.         "console": false,
  672.         "tostatus": false,
  673.         "complete": "Title",
  674.         "targetType": "msg",
  675.         "statusVal": "",
  676.         "statusType": "auto",
  677.         "x": 720,
  678.         "y": 640,
  679.         "wires": []
  680.     },
  681.     {
  682.         "id": "63de6e51448c0942",
  683.         "type": "www-request",
  684.         "z": "1223d4fe.449f4b",
  685.         "name": "",
  686.         "method": "use",
  687.         "ret": "txt",
  688.         "url": "",
  689.         "follow-redirects": true,
  690.         "persistent-http": true,
  691.         "tls": "",
  692.         "x": 370,
  693.         "y": 60,
  694.         "wires": [
  695.             [
  696.                 "48d45ba0.3b68c4"
  697.             ]
  698.         ]
  699.     },
  700.     {
  701.         "id": "fbd6fa56691b89e3",
  702.         "type": "www-request",
  703.         "z": "1223d4fe.449f4b",
  704.         "name": "",
  705.         "method": "use",
  706.         "ret": "txt",
  707.         "url": "",
  708.         "follow-redirects": true,
  709.         "persistent-http": true,
  710.         "tls": "",
  711.         "x": 570,
  712.         "y": 160,
  713.         "wires": [
  714.             [
  715.                 "69b22446.d5e7ec"
  716.             ]
  717.         ]
  718.     },
  719.     {
  720.         "id": "e0f8c5e7b0835864",
  721.         "type": "www-request",
  722.         "z": "1223d4fe.449f4b",
  723.         "name": "",
  724.         "method": "use",
  725.         "ret": "txt",
  726.         "url": "",
  727.         "follow-redirects": true,
  728.         "persistent-http": true,
  729.         "tls": "",
  730.         "x": 370,
  731.         "y": 340,
  732.         "wires": [
  733.             [
  734.                 "b2e12e99.d368e"
  735.             ]
  736.         ]
  737.     },
  738.     {
  739.         "id": "63c89f05ab2ef027",
  740.         "type": "www-request",
  741.         "z": "1223d4fe.449f4b",
  742.         "name": "",
  743.         "method": "GET",
  744.         "ret": "txt",
  745.         "url": "http://jsonplaceholder.typicode.com/{{{query}}}",
  746.         "follow-redirects": true,
  747.         "persistent-http": true,
  748.         "tls": "",
  749.         "x": 550,
  750.         "y": 440,
  751.         "wires": [
  752.             [
  753.                 "2a1bdf74.4c6d58"
  754.             ]
  755.         ]
  756.     },
  757.     {
  758.         "id": "03b923b0709b6778",
  759.         "type": "www-request",
  760.         "z": "1223d4fe.449f4b",
  761.         "name": "",
  762.         "method": "use",
  763.         "ret": "txt",
  764.         "url": "",
  765.         "follow-redirects": true,
  766.         "persistent-http": true,
  767.         "tls": "",
  768.         "x": 730,
  769.         "y": 900,
  770.         "wires": [
  771.             [
  772.                 "e74e3ac0.7e098"
  773.             ]
  774.         ]
  775.     },
  776.     {
  777.         "id": "d1ddab718f0e8535",
  778.         "type": "www-request",
  779.         "z": "1223d4fe.449f4b",
  780.         "name": "",
  781.         "method": "use",
  782.         "ret": "txt",
  783.         "url": "",
  784.         "follow-redirects": true,
  785.         "persistent-http": true,
  786.         "tls": "",
  787.         "x": 370,
  788.         "y": 840,
  789.         "wires": [
  790.             [
  791.                 "5d51eade.d4a07c"
  792.             ]
  793.         ]
  794.     },
  795.     {
  796.         "id": "2fbb0e08b381a3f8",
  797.         "type": "www-request",
  798.         "z": "1223d4fe.449f4b",
  799.         "name": "",
  800.         "method": "GET",
  801.         "ret": "obj",
  802.         "url": "http://jsonplaceholder.typicode.com/{{{query}}}",
  803.         "follow-redirects": true,
  804.         "persistent-http": true,
  805.         "tls": "",
  806.         "x": 450,
  807.         "y": 580,
  808.         "wires": [
  809.             [
  810.                 "3c30ab95.191484"
  811.             ]
  812.         ]
  813.     }
  814. ]
Add Comment
Please, Sign In to add comment