colee / yii2-ynote
youdao note library for Yii2 framework
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
pkg:composer/colee/yii2-ynote
Requires
- php: ~5.5|~7.0
This package is not auto-updated.
Last update: 2025-10-12 07:03:21 UTC
README
YII2 有道云笔记的SDK
install
composer require colee/yii2-ynote
usage
在配置文件中配置components
'ynote'=>[ 'class'=>'colee\ynote\YNote', 'oauth_consumer_key'=>'', 'oauth_consumer_secret'=>'', 'domain'=>'http://note.youdao.com', 'oauth_access_token'=>'', 'oauth_access_secret'=>'', ],
常用的方法:
\Yii::$app->ynote->getNoteBookList(); //获取笔记本列表 \Yii::$app->ynote->getNotePaths($notebook->path);//传入笔记本path,获取本子下的所有笔记的path \Yii::$app->ynote->getNodeByPath($node_path); //通过path获取笔记详情