Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
The Zend_Service_SlideShare component is used to interface with the slideshare.net web server to retrieve slide shows hosted on the web site for display or other processing.
SERVICE_ERROR_BAD_APIKEY = '1'
Web service result code mapping
Details SERVICE_ERROR_BAD_AUTH = '2'
Details SERVICE_ERROR_MISSING_TITLE = '3'
Details SERVICE_ERROR_MISSING_FILE = '4'
Details SERVICE_ERROR_EMPTY_TITLE = '5'
Details SERVICE_ERROR_NOT_SOURCEOBJ = '6'
Details SERVICE_ERROR_INVALID_EXT = '7'
Details SERVICE_ERROR_FILE_TOO_BIG = '8'
Details SERVICE_ERROR_SHOW_NOT_FOUND = '9'
Details SERVICE_ERROR_USER_NOT_FOUND = '10'
Details SERVICE_ERROR_GROUP_NOT_FOUND = '11'
Details SERVICE_ERROR_MISSING_TAG = '12'
Details SERVICE_ERROR_DAILY_LIMIT = '99'
Details SERVICE_ERROR_ACCOUNT_BLOCKED = '100'
Details SERVICE_UPLOAD_URI = 'http://www.slideshare.net/api/1/upload_slideshow'
Slide share Web service communication URIs
Details SERVICE_GET_SHOW_URI = 'http://www.slideshare.net/api/1/get_slideshow'
Details SERVICE_GET_SHOW_BY_USER_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_user'
Details SERVICE_GET_SHOW_BY_TAG_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_tag'
Details SERVICE_GET_SHOW_BY_GROUP_URI = 'http://www.slideshare.net/api/1/get_slideshows_from_group'
Details POWERPOINT_MIME_TYPE = 'application/vnd.ms-powerpoint'
The MIME type of Slideshow files
Detailsstring $_apiKey = ''The API key to use in requests
DetailsZend_Cache_Core $_cacheobject = ''The Cache object to use to perform caching
DetailsZend_Http_Client $_httpclient = ''The HTTP Client object to use to perform requests
Detailsstring $_password = ''The password to use in requests
Detailsstring $_sharedSecret = ''The shared secret to use in requests
Detailsstring $_username = ''The username to use in requests
Details__construct(
string $apikey, string $sharedSecret, string $username
=
null, string $password
=
null
)
:
The Constructor
Details_getSlideShowsByType(
string $key, string $value, int $offset
=
null, int $limit
=
null
)
:
arrayRetrieves Zend_Service_SlideShare_SlideShow object arrays based on the type of list desired
Details_slideShowNodeToObject(
SimpleXMLElement $node
)
:
Zend_Service_SlideShare_SlideShowConverts a SimpleXMLElement object representing a response from the service into a Zend_Service_SlideShare_SlideShow object
DetailsgetApiKey(
)
:
stringGets the API key to be used in making API calls
DetailsgetCacheObject(
)
:
Zend_Cache_CoreGets the Zend_Cache object which will be used to cache API queries. If no cache object was previously set the the default will be used (Filesystem caching in /tmp with a life time of 43200 seconds)
DetailsgetHttpClient(
)
:
Zend_Http_ClientReturns the instance of the Zend_Http_Client which will be used. Creates an instance of Zend_Http_Client if no previous client was set.
DetailsgetPassword(
)
:
stringGets the password to use in API calls
DetailsgetSharedSecret(
)
:
stringGets the shared secret used in making API calls
DetailsgetSlideShow(
int $ss_id
)
:
Zend_Service_SlideShare_SlideShowRetrieves a slide show's information based on slide show ID
DetailsgetSlideShowsByGroup(
string $group, int $offset
=
null, int $limit
=
null
)
:
arrayRetrieves an array of slide shows based on group name
DetailsgetSlideShowsByTag(
string $tag, int $offset
=
null, int $limit
=
null
)
:
arrayRetrieves an array of slide shows based on tag
DetailsgetSlideShowsByUsername(
string $username, int $offset
=
null, int $limit
=
null
)
:
arrayRetrieves an array of slide shows for a given username
DetailsgetUserName(
)
:
stringReturns the user name used for API calls
DetailssetApiKey(
string $key
)
:
Zend_Service_SlideShareSets the API key to be used in making API calls
DetailssetCacheObject(
Zend_Cache_Core $cacheobject
)
:
Zend_Service_SlideShareSets the Zend_Cache object to use to cache the results of API queries
DetailssetHttpClient(
Zend_Http_Client $client
)
:
Zend_Service_SlideShareSets the Zend_Http_Client object to use in requests. If not provided a default will be used.
DetailssetPassword(
string $pw
)
:
Zend_Service_SlideShareSets the password to use in API calls
DetailssetSharedSecret(
string $secret
)
:
Zend_Service_SlideShareSets the shared secret used in making API calls
DetailssetUserName(
string $un
)
:
Zend_Service_SlideShareSets the user name to use for API calls
DetailsuploadSlideShow(
Zend_Service_SlideShare_SlideShow $ss, boolean $make_src_public
=
true
)
:
Zend_Service_SlideShare_SlideShowUploads the specified Slide show the the server
Details