enebularでnode-red その6

# 概要
enebularでnode-redやってみる。
クラウド実行環境を、やってみた。
練習問題やってみた。

# 練習問題
qiita apiを叩いて、csvを返せ。

# フロー

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/18104/51989a07-9948-dd90-77c0-c257dcc74961.png)

```
[{"id":"f930208.79c7de","type":"LCDP-out","z":"1eb8ad6080c26763","name":"","x":730,"y":220,"wires":[]},{"id":"49f2bd94092789fe","type":"LCDP-in","z":"1eb8ad6080c26763","name":"","x":130,"y":240,"wires":[["4450b170f2529a69","5dcdac789a4680e2"]]},{"id":"4450b170f2529a69","type":"debug","z":"1eb8ad6080c26763","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":520,"y":220,"wires":[]},{"id":"d06f833d.ef44f","type":"http response","z":"1eb8ad6080c26763","name":"","statusCode":"","headers":{},"x":730,"y":340,"wires":[]},{"id":"978c71fb62359fc3","type":"http in","z":"1eb8ad6080c26763","name":"","url":"/","method":"get","upload":false,"swaggerDoc":"","x":130,"y":340,"wires":[["5dcdac789a4680e2"]]},{"id":"5dcdac789a4680e2","type":"http request","z":"1eb8ad6080c26763","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://qiita.com/api/v2/items","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":290,"y":340,"wires":[["6817a6c3a5bbf5b9"]]},{"id":"6817a6c3a5bbf5b9","type":"function","z":"1eb8ad6080c26763","name":"","func":"var csv = \"created_at,title,url,id,user.id\\n\";\nvar res = msg.payload;\nfor (var i = 0; i < res.length; i++) \n{\n    csv += res[i].created_at + \",\";\n    csv += res[i].title + \",\";\n    csv += res[i].url + \",\";\n    csv += res[i].id + \",\";\n    csv += res[i].user.id + \"\\n\";\n}\nmsg.payload = csv;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":340,"wires":[["d06f833d.ef44f","f930208.79c7de","4450b170f2529a69"]]}]
```

# 実行結果

```
created_at,title,url,id,user.id
2022-12-23T04:42:42+09:00,境界要素法(BEM)の基礎　理論編,https://qiita.com/atily17/items/e8d768ead859c635bcd7,e8d768ead859c635bcd7,atily17
2022-12-23T04:35:21+09:00,Meta Conversions API Gateway の連携構成事例,https://qiita.com/zagvym/items/d4e9c2a1909f95eb1796,d4e9c2a1909f95eb1796,zagvym
2022-12-23T04:33:58+09:00,Vue.js in RoR の最新サンプルを作ったよ,https://qiita.com/isuke/items/1ee5104e7ae9bd59c897,1ee5104e7ae9bd59c897,isuke
2022-12-23T04:02:43+09:00,【NeosVR】QuestProでフェイシャル＆アイトラッキングする方法,https://qiita.com/linki_biotro9s7/items/735bc2b3a408ac6f9d4c,735bc2b3a408ac6f9d4c,linki_biotro9s7
2022-12-23T03:50:26+09:00,【初心者】よく使うコマンド,sql, テーブル操作,ブラウザでよく使うショートカット,https://qiita.com/noa-h/items/9b52db64a0ea8b8f8d35,9b52db64a0ea8b8f8d35,noa-h
2022-12-23T03:46:55+09:00,WindowsでMakeFileが動かなかった時にやったこと,https://qiita.com/McbeEringi/items/a4dc577cc163442c43f7,a4dc577cc163442c43f7,McbeEringi
2022-12-23T03:42:37+09:00,【初心者必見】php 変数名の付け方,https://qiita.com/noa-h/items/68e20e64f8062b797707,68e20e64f8062b797707,noa-h
2022-12-23T03:41:58+09:00,2022/12/23主にITとかセキュリティの記事,https://qiita.com/pitopito/items/264651579d498c65fe9c,264651579d498c65fe9c,pitopito
2022-12-23T03:20:53+09:00,グルメ横断検索サービスを作ってみた,https://qiita.com/itaya/items/6789475742707453d617,6789475742707453d617,itaya
2022-12-23T03:16:23+09:00,GithubのNetwork Graphを使ってみよう,https://qiita.com/ababaSigrun/items/4f2d9b817fab0743febf,4f2d9b817fab0743febf,ababaSigrun
2022-12-23T02:55:14+09:00,[TypeScript,Jest] JestでオリジナルのMatcherを作ってテストをしよう,https://qiita.com/iron-samurai/items/7dcf8b5f7c75bc11c55f,7dcf8b5f7c75bc11c55f,iron-samurai
2022-12-23T02:51:56+09:00,scratch3.0でAWSを操作してみたかった(できなかった),https://qiita.com/htako/items/5323bdaaadf8421ddc1e,5323bdaaadf8421ddc1e,htako
2022-12-23T02:43:29+09:00,プロデルでのコレクション操作とテスト,https://qiita.com/Mopepe51/items/54fbbd6f423fe34431c3,54fbbd6f423fe34431c3,Mopepe51
2022-12-23T02:40:58+09:00,Strategyパターンから理解するGo言語のinterface,https://qiita.com/chuanduanku52/items/9014547477868b3ba398,9014547477868b3ba398,chuanduanku52
2022-12-23T02:37:02+09:00,各ブラウザにおける WebGL 対応状況（2022年12月時点）,https://qiita.com/cx20/items/f137ac99c4710bb72078,f137ac99c4710bb72078,cx20
2022-12-23T02:34:26+09:00,私が使用しているリモートワークを快適にする・・・かもしれないアイテムのレビューをします,https://qiita.com/Aichi_Lover/items/7c7c06aa4b9fa527d6b5,7c7c06aa4b9fa527d6b5,Aichi_Lover
2022-12-23T02:27:41+09:00,NanoPi NEO / NanoPi NEO2 NASキットでSSD TRIMを有効にする,https://qiita.com/penguinprogrammer/items/14e396729aa6b78068ef,14e396729aa6b78068ef,penguinprogrammer
2022-12-23T02:20:09+09:00,Microsoft Defender for Serversでできるサーバーセキュリティ対策,https://qiita.com/ich_na/items/17cb874fe5f8312620dd,17cb874fe5f8312620dd,ich_na
2022-12-23T02:19:03+09:00,[Oracle Cloud] Speedtest CLI で Internet 速度を測定してみてみた,https://qiita.com/shirok/items/f3e909e22e17f0b51243,f3e909e22e17f0b51243,shirok
2022-12-23T02:16:20+09:00,Visual Studio Code のJupyter Notebookの配色をカスタマイズする方法（そのままコピペ可）,https://qiita.com/Asagi7974/items/a173c96480396b3034b4,a173c96480396b3034b4,Asagi7974
```

以上。