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
SERVICE_ERROR_BAD_AUTH = '2'
SERVICE_ERROR_MISSING_TITLE = '3'
SERVICE_ERROR_MISSING_FILE = '4'
SERVICE_ERROR_EMPTY_TITLE = '5'
SERVICE_ERROR_NOT_SOURCEOBJ = '6'
SERVICE_ERROR_INVALID_EXT = '7'
SERVICE_ERROR_FILE_TOO_BIG = '8'
SERVICE_ERROR_SHOW_NOT_FOUND = '9'
SERVICE_ERROR_USER_NOT_FOUND = '10'
SERVICE_ERROR_GROUP_NOT_FOUND = '11'
SERVICE_ERROR_MISSING_TAG = '12'
SERVICE_ERROR_DAILY_LIMIT = '99'
SERVICE_ERROR_ACCOUNT_BLOCKED = '100'
SERVICE_UPLOAD_URI = 'http://www.slideshare.net/api/1/upload_slideshow'
Slide share Web service communication URIs
SERVICE_GET_SHOW_URI = 'http://www.slideshare.net/api/1/get_slideshow'
SERVICE_GET_SHOW_BY_USER_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_user'
SERVICE_GET_SHOW_BY_TAG_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_tag'
SERVICE_GET_SHOW_BY_GROUP_URI = 'http://www.slideshare.net/api/1/get_slideshows_from_group'
POWERPOINT_MIME_TYPE = 'application/vnd.ms-powerpoint'
The MIME type of Slideshow files
string $_apiKey = ''
The API key to use in requests
Zend_Cache_Core $_cacheobject = ''
The Cache object to use to perform caching
Zend_Http_Client $_httpclient = ''
The HTTP Client object to use to perform requests
string $_password = ''
The password to use in requests
string $_sharedSecret = ''
The shared secret to use in requests
string $_username = ''
The username to use in requests
__construct(
string $apikey, string $sharedSecret, string $username
=
null, string $password
=
null
)
:
The Constructor
_getSlideShowsByType(
string $key, string $value, int $offset
=
null, int $limit
=
null
)
:
array
Retrieves Zend_Service_SlideShare_SlideShow object arrays based on the type of list desired
_slideShowNodeToObject(
SimpleXMLElement $node
)
:
Zend_Service_SlideShare_SlideShow
Converts a SimpleXMLElement object representing a response from the service into a Zend_Service_SlideShare_SlideShow object
getApiKey(
)
:
string
Gets the API key to be used in making API calls
getCacheObject(
)
:
Zend_Cache_Core
Gets 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)
getHttpClient(
)
:
Zend_Http_Client
Returns the instance of the Zend_Http_Client which will be used. Creates an instance of Zend_Http_Client if no previous client was set.
getPassword(
)
:
string
Gets the password to use in API calls
getSharedSecret(
)
:
string
Gets the shared secret used in making API calls
getSlideShow(
int $ss_id
)
:
Zend_Service_SlideShare_SlideShow
Retrieves a slide show's information based on slide show ID
getSlideShowsByGroup(
string $group, int $offset
=
null, int $limit
=
null
)
:
array
Retrieves an array of slide shows based on group name
getSlideShowsByTag(
string $tag, int $offset
=
null, int $limit
=
null
)
:
array
Retrieves an array of slide shows based on tag
getSlideShowsByUsername(
string $username, int $offset
=
null, int $limit
=
null
)
:
array
Retrieves an array of slide shows for a given username
getUserName(
)
:
string
Returns the user name used for API calls
setApiKey(
string $key
)
:
Zend_Service_SlideShare
Sets the API key to be used in making API calls
setCacheObject(
Zend_Cache_Core $cacheobject
)
:
Zend_Service_SlideShare
Sets the Zend_Cache object to use to cache the results of API queries
setHttpClient(
Zend_Http_Client $client
)
:
Zend_Service_SlideShare
Sets the Zend_Http_Client object to use in requests. If not provided a default will be used.
setPassword(
string $pw
)
:
Zend_Service_SlideShare
Sets the password to use in API calls
setSharedSecret(
string $secret
)
:
Zend_Service_SlideShare
Sets the shared secret used in making API calls
setUserName(
string $un
)
:
Zend_Service_SlideShare
Sets the user name to use for API calls
uploadSlideShow(
Zend_Service_SlideShare_SlideShow $ss, boolean $make_src_public
=
true
)
:
Zend_Service_SlideShare_SlideShow
Uploads the specified Slide show the the server