A Node.js wrapper for put.io APIv2 https://api.put.io/v2/docs/
It supports all the methods & functions that put.io's API provides: Files, Transfers, Zips, Friends, Account, Events.
$ npm install put.io-node
$ git clone firstname.lastname@example.org:alormil/put.io-node.git
const Client = Client;// Initialize client with your own app tokenconst apiClient = 'XYZTOKEN';// Account// Retrieve Account InfoapiClientaccount;// Friends// Send Friend RequestapiClientfriends;// Zips// Create Zip from File listapiClientzips;// Transfers// Get List of TransfersapiClienttransfers;// Files// Create FolderapiClientfiles;// Events// Get List of EventsapiClientevents;
All functions return string promises, make sure you convert these strings to JSON objects for future manipulation. I will add examples for each function call in the Wiki, but feel free to have a look at the source code in order to see which functions are available.
$ npm test
If you discover any security related issues, please email me at: email@example.com.
Pull requests are welcome, take care of maintaining the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using the existing standards.
Copyright (c) 2016 Alain Lormil
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.