Last active
August 29, 2015 14:17
-
-
Save ik11235/177319dafab90770846e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doPost(e) { | |
//送信されたxmlの受け取り | |
var xml = e.postData.getDataAsString(); | |
var document = XmlService.parse(xml); | |
var root = document.getRootElement(); | |
var methodName = document.getRootElement().getChildren('methodName'); | |
var params = document.getRootElement().getChild('params').getChildren(); | |
//ブログ名 | |
var title = params[0].getChildren()[0].getChildText("string"); | |
//URL | |
var url = params[1].getChildren()[0].getChildText("string"); | |
//RSS等更新通知部分のURL | |
var feed = params[2].getChildren()[0].getChildText("string"); | |
if(methodName[0].getText() == "weblogUpdates.extendedPing") | |
{ | |
/* | |
更新処理 | |
*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment