CloudApp::REST::Item - Base class for all items
This is the base class (a Moose role) for all items. You cannot instantiate CloudApp::REST::Item, so use this as a reference of common attributes and methods.
Following attributes are valid for every CloudApp::REST::Item::* instance:
CloudApp::REST::Item::*
The unique id of the CloudApp item.
The current view count.
The internal CloudApp owner ID.
The type of the item.
The given name of the item.
This is the part of the URL after http://cl.ly/, eg. TtS for http://cl.ly/TtS, if this item is private.
http://cl.ly/
TtS
http://cl.ly/TtS
This is the part of the URL after http://cl.ly/, eg. 58c212593ebb890ebe1f for http://cl.ly/58c212593ebb890ebe1f, if this item is public.
58c212593ebb890ebe1f
http://cl.ly/58c212593ebb890ebe1f
Returns the slug, no matter if it is private or public.
This is the URL of the content, eg. the file itself.
The URL to the item icon at CloudApp.
The private URL to the item at CloudApp.
The public short URL to the item at CloudApp.
The date when this item was uploaded to/created at CloudApp. Returns a DateTime object.
The date when this item was updated at CloudApp. If set, returns a DateTime object.
The date when this item was deleted at CloudApp. If set, returns a DateTime object.
Following methods are inherited by every CloudApp::REST::Item::* module:
Deletes the current item at CloudApp. The item instance can be used after deleting as long as the instance won't go out of scope, but won't be updated automatically. CloudApp moves this item to the trash after detelion.
Dies if the item is "strip"ed.
Removes the reference to CloudApp::REST.
As long as an item is not stripped, every item instance contains a reference to the API instance, which may also contain the credentials of the user in cleartext! Strip an item before you pass it along to someone else to prevent unwanted or unauthorized reading of the users data!
CloudApp::REST
CloudApp::REST::Item::Archive
CloudApp::REST::Item::Audio
CloudApp::REST::Item::Bookmark
CloudApp::REST::Item::Image
CloudApp::REST::Item::Pdf
CloudApp::REST::Item::Text
CloudApp::REST::Item::Unknown
CloudApp::REST::Item::Video
Matthias Dietrich, <perl@rainboxx.de>
<perl@rainboxx.de>
http://www.rainboxx.de
Copyright 2010 Matthias Dietrich.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install CloudApp::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CloudApp::REST
CPAN shell
perl -MCPAN -e shell install CloudApp::REST
For more information on module installation, please visit the detailed CPAN module installation guide.