rscribd gem
Gem details
Documentation
gem install rscribd
This API allows you to use Scribd‘s Flash viewer on your website. You‘ll be able to take advantage of Scribd‘s scalable document conversion system to convert your documents into platform-independent formats. You can leverage Scribd‘s storage system to store your documents in accessible manner. Scribd‘s ad system will help you monetize your documents easily.
First, you‘ll need to get a Scribd API account. Visit www.scribd.com/platform to apply for a platform account.
On the Platform site you will be given an API key and secret. The API object will need these to authenticate you:
require 'rscribd' Scribd::API.instance.key = 'your API key' Scribd::API.instance.secret = 'your API secret'
Next, log into the Scribd website:
Scribd::User.login 'username', 'password'
You are now ready to use Scribd to manage your documents. For instance, to upload a document:
doc = Scribd::Document.upload(:file => 'your-file.pdf')
For more information, please see the documentation for the Scribd::API, Scribd::User, and Scribd::Document classes. (You can also check out the docs for the other classes for a more in-depth look at this gem‘s features).
Edit Gem | (0 older versions) | Last edited by: scott, over 2 years ago


