Skip to content

Instantly share code, notes, and snippets.

View UskeS's full-sized avatar

Yusuke S. UskeS

View GitHub Profile
@UskeS
UskeS / Code.gs
Created August 23, 2019 01:53 — forked from takanakahiko/Code.gs
ふりがなGAS
var nsDefault = XmlService.getNamespace("urn:yahoo:jp:jlp:FuriganaService");
function parseXml() {
var url = 'http://jlp.yahooapis.jp/FuriganaService/V1/furigana';
var params = [
'appid=XXXXXXXXXXXXXXXXXXXX',
'sentence=' + encodeURIComponent('初音ミクさんを忘れないでください'),
'grade=1'
]
var xml = UrlFetchApp.fetch(url + '?' + params.join('&') ).getContentText();