Comments (7)
Thank you so much! I spent hours trying to figure this out! This worked for me...
curl -X 'POST' \
'https://upload.put.io/v2/files/upload' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer XXXXXXXTOKENXXXXXXXX' \
-F '[email protected]' \
-F 'filename=' \
-F 'parent_id='
from kaput-cli.
This is not currently possible using only the Put.js library.
from kaput-cli.
Is it possible to upload a .torrent file to start the transfer?
from kaput-cli.
@Gex2501 Good news, I'm actually 95% done with completely rewriting this software and I already have file uploading working.
My goal is to have v2.0 released this weekend!
from kaput-cli.
That's fantastic! What I'm really looking for a simple one line curl command to add torrent transfers. I've been reading over the API for hours and I'm just not sure how to do it. I got the following from the API but where do I put my token so the command is authenticated?
curl -X 'POST' \
'https://upload.put.io/v2/files/upload' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F '[email protected]' \
-F 'filename=' \
-F 'parent_id=0'
from kaput-cli.
@Gex2501 You're super close!
You just need an API token in the header:
Authorization: Bearer ${API_TOKEN}
Which I think looks like -H "Authorization: Bearer TOKEN_HERE"
added to CURL.
from kaput-cli.
Added in v2.0.0!
from kaput-cli.
Related Issues (16)
- Support for JSON output? HOT 4
- autocomplete fails HOT 2
- List --all option to list all files? HOT 2
- Support multiple users HOT 2
- Add Filters from API HOT 3
- Need to fetch parent folder of fileid HOT 2
- transfer:add with folderID flag not working as expected HOT 2
- handle pagination in lists
- Listing transfers with active transfer causes error HOT 3
- Play - new feature request to play videos using mpv. HOT 3
- Upload parent directory HOT 5
- Expose crate as lib HOT 1
- Download folder throws error during check zip status "invalid type: null, expected a string" HOT 2
- New Features: Recursive and multiple downloads HOT 2
- Installing on machine with older glibc HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaput-cli.