Hi Node-RED forums.
I'm an avid User of Pocket.
I want to interact (and specifically, retrieve
) the data from my pocket account.
I've created an app and received a consumer key
.
I've been following this call and created this flow, but I'm receiving `"non-http transport requested" as an error.
Here's my flow.
I really need to clarify myself how to use and interact with headers, specifically woth the change node, rather than the function node.
Thanks in advance for the help.
[{"id":"4ade6f69.0f7db","type":"http request","z":"967d56b4.c7f498","name":"pocket request APIs","method":"POST","ret":"obj","paytoqs":"ignore","url":" https://getpocket.com/v3/oauth/request ","tls":"","persist":false,"proxy":"","authType":"","x":560,"y":4600,"wires":[["d19b405.3e9f5c"]]},{"id":"692f12fb.ec970c","type":"change","z":"967d56b4.c7f498","name":"set payload and headers","rules":[{"t":"set","p":"headers","pt":"msg","to":"{\"Content-Type\":\"Application/json; charset=UTF8\",\"X-Accept\":\"application/x-www-form-urlencoded\"}","tot":"json"},{"t":"set","p":"headers","pt":"msg","to":"{\"consumer_key\":\"MyKey\",\"redirect_uri\":\"http://google.com\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":4640,"wires":[["4ade6f69.0f7db","f70ce42e.dfb5b8"]]},{"id":"5632bad4.b682e4","type":"inject","z":"967d56b4.c7f498","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":4620,"wires":[["fbba97fb.d0da48"]]},{"id":"f70ce42e.dfb5b8","type":"http request","z":"967d56b4.c7f498","name":"httpbin","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://httpbin.org/post","tls":"","persist":false,"proxy":"","authType":"","x":570,"y":4640,"wires":[["d19b405.3e9f5c"]]},{"id":"d19b405.3e9f5c","type":"debug","z":"967d56b4.c7f498","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":4600,"wires":[]},{"id":"fbba97fb.d0da48","type":"change","z":"967d56b4.c7f498","name":"set payload and headers","rules":[{"t":"set","p":"headers","pt":"msg","to":"{\"Content-Type\":\"Application/json; charset=UTF8\",\"X-Accept\":\"application/json\"}","tot":"json"},{"t":"set","p":"headers","pt":"msg","to":"{\"consumer_key\":\"MyKey\",\"redirect_uri\":\"http://google.com\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":4600,"wires":[["4ade6f69.0f7db","f70ce42e.dfb5b8"]]}]