【文件属性】:
文件名称:go-ynote:The open-api library for youdao note (有道云笔记)
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-24 17:54:33
Go
go-ynote
go-ynote 是 API 的 SDK。
用法
建立一个*YnoteClient对象,设置开发者 token/secret.
yc := ynote.NewOnlineYnoteClient(ynote.Credentials{
Token: "****",
Secret: "****"})
如果还没获得AccToken(存取令牌),如下方式得到:
tmpCred, err := yc.RequestTemporaryCredentials()
if err != nil {
return
}
fmt.Println("Temporary credentials got:", tmpCred)
authUrl := yc.AuthorizationURL(tmpCred)
// Let the end-user access this URL of
【文件预览】:
go-ynote-master
----demo()
--------ycon.go(8KB)
----ynote.go(17KB)
----README.md(2KB)
----.gitignore(252B)