PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Retrieving a single slide show

The simplest usage of the Zend_Service_SlideShare component is the retrieval of a single slide show by slide show ID provided by the slideshare.net application and is done by calling the getSlideShow() method of a Zend_Service_SlideShare object and using the resulting Zend_Service_SlideShare_SlideShow object as shown.

<?php
// Create a new instance of the component
$ss = new Zend_Service_SlideShare('APIKEY',
                                  
'SHAREDSECRET',
                                  
'USERNAME',
                                  
'PASSWORD');

$slideshow $ss->getSlideShow(123456);

print 
"Slide Show Title: {$slideshow->getTitle()}<br/>\n";
print 
"Number of views: {$slideshow->getNumViews()}<br/>\n";

Zend Framework