this is my link that I put together in a little flow.
I x-ed a few numbers of my user code.
Does the content statement go into headers?
[{"id":"7d0f1c8ef7cbe606","type":"function","z":"264e8ddc6a8ee1d7","name":"function 64","func":"delete msg.topic;\ndelete msg.payload;\nmsg.headers =\"Content-Type: application/x-www-form-urlencoded;charset=UTF-8\"\nlet u = \"https://api.netatmo.com/oauth2/token?\";\nlet p = \"grant_type=authorization_code\" + \"&\" +\n\"code=xxxxxxxxdb002c922a6b68202d4d87365\" + \"&\" +\n\"client_id=xxxxxxxad076b72e221919dbc\" + \"&\" +\n\"client_secret=xxxxxxxx6yjx717g98gABh0uiSGgyEsJ\" + \"&\" +\n\"redirect_uri=localhost\" + \"&\" +\n\"scope=read_station\" + \"&\" +\n\"state = Bebefunk\";\nmsg.url = u + p;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":340,"wires":[["9a5586f4ca368a78","adcf8213009aa17c"]]},{"id":"adcf8213009aa17c","type":"http request","z":"264e8ddc6a8ee1d7","name":"","method":"POST","ret":"obj","paytoqs":"body","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":670,"y":340,"wires":[["de9fc90132f0778e"]]},{"id":"9a5586f4ca368a78","type":"debug","z":"264e8ddc6a8ee1d7","name":"debug 109","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":670,"y":400,"wires":[]},{"id":"0536db188c167914","type":"inject","z":"264e8ddc6a8ee1d7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":280,"y":340,"wires":[["7d0f1c8ef7cbe606"]]},{"id":"de9fc90132f0778e","type":"debug","z":"264e8ddc6a8ee1d7","name":"debug 110","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":340,"wires":[]}]