1

吐槽一下CSDN的OpenAPI

 2 years ago
source link: https://www.lujun9972.win/%E6%97%A0%E4%B8%BB%E4%B9%8B%E5%9C%B0/2016/11/03/%E5%90%90%E6%A7%BD%E4%B8%80%E4%B8%8Bcsdn%E7%9A%84openapi/%20or%20/%E6%97%A0%E4%B8%BB%E4%B9%8B%E5%9C%B0/%E5%90%90%E6%A7%BD%E4%B8%80%E4%B8%8Bcsdn%E7%9A%84openapi/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

吐槽一下CSDN的OpenAPI

本来看到CSDN开放了API还蛮期待的,想着终于能够把写好的org文件直接导成CSDN的博客了,然而在尝试使用CSDN API时发现CSDN很明显没有把它当回事来做啊。

目前发现的问题有以下几个:

大量的API看不到详细说明

点进去就直接显示“系统维护中......”

出现这个问题的有:

  • user/getinfo
  • blog/saveinfo
  • blog/gethomenewest
  • blog/getcolumndetails

单词拼写有问题

我很神奇的发现, bbs/gettopics 这个API,传递参数时参数名用"forum"居然提示是 froum是不可缺少的参数. 这很明显是实现API时出现了拼写错误

API的接口说明与实际不符

blog/getarticle 这个API的返回结果中,我居然看到了有 markdowncontentmarkdowndirectory 这样的字段,然而接口说明中找不到相关说明


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK