2014-01-15 28 views

回答

1

查看我的repository hosted at GitHub獲取PHP中合適的腳本。 以下是Google Apps腳本結合GitHub上提到的腳本的示例。

function getPageRank() { 
    // Generate a log, then email it to the person who ran the script. 
    var response = UrlFetchApp.fetch("http://cdn.florianbussmann.de/github/pagerank/script.php"); 
    Logger.log(response.getContentText()); 
    var recipient = Session.getActiveUser().getEmail(); 
    var subject = 'Fetched PageRank'; 
    var body = Logger.getLog(); 
    MailApp.sendEmail(recipient, subject, body); 
} 

隨意問更多問題。

相關問題