Sha256: 9793a75e282880cc762456ba44b2d211090d39ed3c136d215f8e40a0164a9c67
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
Qnap::DownloadStation ======= This gem provides an interface to the Download Station app that comes installed by default on many QNAP NAS. It provides access to all available endpoints, but only a few have been documented. Installation ------- `gem install qnap-download_station` Usage ------- ```ruby require 'qnap/download_station' magnet_link = "magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a&dn" ds = Qnap::DownloadStation.new '192.168.1.100', 'username', 'password' ds.task_add_url temp: 'Download', move: 'Multimedia/New', url: magnet_link active_downloads = ds.task_query ds.logout ``` ```ruby # Alternative syntax to guarantee logout Qnap::DownloadStation.session('192.168.1.100', 'username', 'password') do |ds| ds.task_add_url temp: 'Download', move: 'Multimedia/New', url: magnet_link pp ds.task_query # logout is automatically called, even if there was an exception end ``` Available methods ------- **Account methods** * account_add * account_query * account_remove * account_update **Addon methods** * addon_enable * addon_install * addon_query * addon_search * addon_uninstall * addon_verify **Config methods** * config_get * config_set **Misc methods** * misc_dir * misc_env * misc_login * misc_logout * misc_socks_5 **RSS methods** * rss_add * rss_add_job * rss_query * rss_query_feed * rss_query_job * rss_remove * rss_remove_job * rss_update * rss_update_feed * rss_update_job **Tasks** * task_add_torrent * task_add_url * task_detail * task_get_file * task_pause * task_priority * task_query * task_remove * task_set_file * task_start * task_status * task_stop TODO ------- * Document the endpoints * Input validation * Allow users to specify a SSL cert instead of just ignoring certificate errors
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qnap-download_station-0.0.2 | README.md |