可汗学院JS
与Khan Academy API进行交互的Node.JS SDK
安装此软件包。
npm install khanacademyjs -- save
SDK文档
徽章
检索所有徽章的列表
var khanJS = require ( 'khanacademyjs' ) ;
khanJS . badges . getBadges ( ( err , response , badges ) => {
console . log ( `Found ${ badges . length } badges` ) ;
} ) ;
样本徽章对象
{
" badge_category " : 1 ,
" description " : " Going Transonic " ,
" name " : " greattimedproblembadge " ,
" points " : 500 ,
" safe_extended_description " : " Quickly & correctly answer 10
1