0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TextGrid.API

Posted at

プレーンテキスト上で 小さなテーブルが
欲しい時があります。
とにかく コレ作るのは 邪魔くさいんで
自動作表APIを 用意しました。
ご自由に ご利用ください。

TextGrid.API ( TwilightBluesy )

boot.sh
#!/bin/bash
# ----------------------
clear
cd `dirname $0`
# ----------------------
r_gH=./__gH.txt
r_gZ=./__gZ.txt
r_pH=./__pH.txt
r_pZ=./__pZ.txt
# ----------------------
if [ -e ${r_gH} ]; then rm ${r_gH}; fi
if [ -e ${r_gZ} ]; then rm ${r_gZ}; fi
if [ -e ${r_pH} ]; then rm ${r_pH}; fi
if [ -e ${r_pZ} ]; then rm ${r_pZ}; fi
# ----------------------
_URL="https://twilight-bluesy.net/_api/211/"
hURL="${_URL}hLin.php"
zURL="${_URL}zLin.php"
# ----------------------
padH=2
dSrc="110,ポリス;119,消防;117,Time_Signal;177,天気予報;171,災害伝言ダイヤル"
# ----------------------
data="padH=${padH}&dSrc=${dSrc}"
# ----------------------
curl -X GET  ${hURL}?${data}    > ${r_gH}
curl -X GET  ${zURL}?${data}    > ${r_gZ}
curl -X POST ${hURL} -d ${data} > ${r_pH}
curl -X POST ${zURL} -d ${data} > ${r_pZ}
# ----------------------
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?