项目作者: yui540

项目描述 :
声優ラジオサイト「音泉」APIライブラリ for Node.js
高级语言: CoffeeScript
项目地址: git://github.com/yui540/onsen-node.git
创建时间: 2016-09-23T11:45:51Z
项目社区:https://github.com/yui540/onsen-node

开源协议:MIT License

下载


onsen-node

声優ラジオサイト「音泉」APIモジュール for Node.js

Method

  • getList
    • 番組一覧(曜日ごと)の取得
  • getInfo
    • 番組情報の取得
  • getLink
    • 音声・動画リンクの取得
  • search
    • 番組の検索
  • getRecommends
    • レコメンドの取得
  • getRecommendMovie
    • おすすめの番組の取得
  • getRecommendGoods
    • おすすめの商品の取得
  • getTopics
    • トピックの取得

Usage

npm install

  1. npm install onsen-node

example

  1. onsen = require 'onsen-node'
  2. ##
  3. # 番組一覧の取得
  4. ##
  5. onsen.getList (list) ->
  6. if list isnt null
  7. console.log list
  8. ##
  9. # 番組情報の取得
  10. ##
  11. onsen.getInfo '番組名', (info) ->
  12. if info isnt null
  13. console.log info
  14. ##
  15. # 音声・動画リンクの取得
  16. ##
  17. onsen.getLink '番組名', (link) ->
  18. if link isnt null
  19. console.log link
  20. ##
  21. # 番組の検索
  22. ##
  23. onsen.search '検索ワード', (list) ->
  24. if list isnt null
  25. console.log list
  26. ##
  27. # レコメンドの取得
  28. ##
  29. onsen.getRecommends (list) ->
  30. if list isnt null
  31. console.log list
  32. ##
  33. # おすすめの番組の取得
  34. ##
  35. onsen.getRecommendMovie (list) ->
  36. if list isnt null
  37. console.log list
  38. ##
  39. # おすすめの商品の取得
  40. ##
  41. onsen.getRecommendGoods (list) ->
  42. if list isnt null
  43. console.log list
  44. ##
  45. # おすすめの番組の取得
  46. ##
  47. onsen.getRecommendTopics (list) ->
  48. if list isnt null
  49. console.log list

CLI

npm install

  1. sudo npm install -g onsen-node

command

ヘルプ

  1. onsen -h

番組一覧

  1. onsen list
  2. onsen list 今日
  3. onsen list

list

番組の検索

  1. onsen search 番組名

search

音声・動画ファイルのダウンロード

  1. onsen download 番組名

download

番組情報

  1. onsen info 番組名

info