最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】印象笔记同步WordPress失败去确认印象笔记的developer token是否可用

WordPress crifan 2137浏览 0评论

很久之前就遇到:

【印象笔记 token authenticationToken】

Developer Tokens

当时是特殊情况:

Update: the creation of developer tokens is temporarily disabled.

-》估计过段时间才能正常创建?

但是很多个月过去了,也还是不能创建新的

不过呢,但是通过小书匠获得的token:

S=s62:U=x:E=x:C=x:P=185:A=get-off-the-ground:V=2:H=ecb512xxx4bcc

已撤销下面的token了:

Expires: 23 July 2018, 06:59

S=xx:U=xx:E=xx:C=1xx70:P=1cd:A=en-devtoken:V=2:H=d694xxx491d

然后也就可以继续用于同步。

不过最近,20181207,同步帖子失败,没有生效。

以为印象笔记同步WordPress的插件版本升级导致的吗?

不过刚发现上面的之前用小书匠创建的token

Expires: 23 July 2018, 06:59

前后的token,现在是过期了。

所以理论上重新创建一个即可。

不过印象笔记之前没法创建 developer token

但是此刻去看了看,竟然恢复创建了,所以就去创建一个:

Developer Tokens

<code>Developer Tokens

Developer tokens allow you to use the Evernote API to access your personal Evernote account. To learn more about using developer tokens, visit dev.evernote.com.
Protect this token as carefully as you protect your Evernote password! Anybody with access to this token has full access to your Evernote account. You can revoke this token at any time by returning to this page.
To get started, copy the token below and paste it into your code. It can be used as the authenticationToken parameter in any authenticated Evernote API call. Authenticated NoteStore calls should be made to the NoteStore URL displayed below.
Please save this token in a safe spot. After you leave this page, if you forget or lose your token you will have to generate a new one.
</code>

但是很诡异的是:

<code>Developer Token
S=s62:U=x:E=x:C=x:P=1cd:A=en-devtoken:V=2:H=x

NoteStore URL:
https://app.yinxiang.com/shard/s62/notestore

Expires:
15 December 2018, 02:46
</code>

竟然只有一星期就过期了。。。

后记:

重新进来,果然看不到token了:

另外网页中打开:

https://app.yinxiang.com/shard/s62/notestore

还是和之前一样是全部是问号:

而刚才刚通过:

【未解决】自己写Python脚本同步印象笔记到WordPress

而知道NoteStore是用于接口中去获取笔记的信息的,所以此处网页版中打开不正常,就可以理解了。

然后新旧对比:

<code>S=s62:U=c1e34d:E=x:C=x:P=185:A=get-off-the-ground:V=2:H=x
S=s62:U=c1e34d:E=x:C=x:P=1cd:A=en-devtoken:V=2:H=x
</code>

可以看出:

  • S=NoteStore

    • s62就是url中的https://app.yinxiang.com/shard/s62/notestore

  • U=User

    • 后面是userId,自己的是c1e34d

  • E 不知道

    • 或许是Expired,但是后面的不是timestamp

  • C也不知道

  • A=xxx

    • 旧的是小书匠获取的get-off-the-ground

    • 新的是:en-devtoken

  • V=估计是版本,都是2

  • H值看来就是token了

    • 新旧token值不同

然后此处把上面新的token设置到插件中

点击 手动同步

等了半天还是白屏:

所以感觉还是不行

抽空等等,看看后台运行任务能否自动同步前几天的几个帖子:

的确可以同步了:

看来的确是token过期了。

然后过了一周后,再去重新申请新token。

【后记】

刚刚,20181208 14:00,把WordPress升级到了 5.0

结果竟然提示去升级数据库-》之前升级过那么多次都没有升级数据库了

-》说明内部字段结构有变化?

-》那么会不会导致现在这个WordPress的插件也失效了??

【后记 20181216】

今天发现笔记本同步失败,突然想到:看来是token过期了。

去打开:

Developer Tokens

果然是:都不显示之前的,说是申请过token的界面了,显示没有token:

所以去重新申请一个

过期时间:

23 December 2018, 11:50

转载请注明:在路上 » 【已解决】印象笔记同步WordPress失败去确认印象笔记的developer token是否可用

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
91 queries in 0.182 seconds, using 22.09MB memory