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
## STEP0. はじめに | |
http://www.nicovideo.jp/watch/1380872606 | |
上記の動画を例にDL方法を解説する | |
## STEP1. パラメータの取得 | |
http://flapi.nicovideo.jp/api/getflv/1380872606 | |
上記URLをログインした状態(Cookieが設定されている状態)でGETする |
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
<?php | |
App::uses('CakeEmail', 'Network/Email'); | |
class Base64Email extends CakeEmail { | |
protected function _renderTemplates($content) { | |
$rendered = parent::_renderTemplates($content); | |
array_walk($rendered, function(&$val, $key) { | |
$val = chunk_split(base64_encode($val), 76, "\n"); | |
}); |