richid / services_scribd Goto Github PK
View Code? Open in Web Editor NEWPHP Interface to Scribd's API
PHP Interface to Scribd's API
On line 60 is an array $_validDocTypes. This arraiy is used in function upload() (line 271). The document types in the array
are used for the function getDownloadUrl(). The function upload() can handle a lot more document types. I added the array
$_validDocTypesUpload and used this variable on line 271 in the function upload ().
So there is an difference between the document types for uploading and for downloading. When downloading the document types "pdf", "txt", "original" are used (http://www.scribd.com/developers/api?
method_name=docs.getDownloadUrl). When uploading there are a many more document types which can be used (http://www.scribd.com/developers/api?method_name=docs.upload)
Original report: https://pear.php.net/bugs/bug.php?id=19067
Services_Scribd::timeout is set to 10 seconds, which is fine with most requests.
But on upload (Services_Scribd_Docs::upload()), the timeout sometimes is too soon when the file is big & the connection is not as fast as it should be. Upload fails with Exception Message "Request timed out after 10 second(s)"
I'd suggest making the timeout setting configurable (per upload request as parameter, per method or whatever coding style is PEAR-appropriate)
Original report: https://pear.php.net/bugs/bug.php?id=16746
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.