nicoswd / put.io-api-v2 Goto Github PK
View Code? Open in Web Editor NEWPHP OAuth API wrapper for put.io (putio)
License: MIT License
PHP OAuth API wrapper for put.io (putio)
License: MIT License
Hi,
I've a little question. When I search file with term + "-1" for page. The resultat is limited, I don't have alle file and I don't have number of page total.
Excuse for my english...I french X/
Thx
EDIT: prob of put.io
Hey, I've used your library in the past and it worked great. I'm Trying it again for a new project and I can't connect. The error I get is:
Uncaught PutIO\Exceptions\RemoteConnectionException: SSL certificate problem: self signed certificate in certificate chain in putio/vendor/nicoswd/putio/src/PutIO/Engines/HTTP/CurlEngine.php:97
I've checked the code and I also changed
private $verifyPeer = \true;
to false in CurlEngine.php
For me, about the only reason I would want to use an API is to get the download URLs. Not to be forced to save it on my server. You should be able to get the redirect URL for the file.
My application does not work any more:
[2015-12-06 10:52:13] putio-unwrapper.ERROR: Failed to excute API. {"error":"SSL certificate problem: self signed certificate in certificate chain"} []
I tried to replace StarfieldClass2CA.pem
by the comodo certs that are in the chain of api.put.io
, but still got the same error.
When I try this, tweaked from the docs:
// Upload a file.
$file = '/path/to/file.torrent';
$putio->files->upload($file);
I'm getting the following response from the API even though other API calls (getting files) work just fine.
{
"error_message": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
"error_type": "Unauthorized",
"error_uri": "http://api.put.io/v2/docs",
"status": "ERROR",
"status_code": 401
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.