Services_Digg2
[ class tree: Services_Digg2 ] [ index: Services_Digg2 ] [ all elements ]

Source for file v2_0_story_getInfo.php

Documentation is available at v2_0_story_getInfo.php

  1. <?php
  2.  
  3. require_once 'config.php';
  4.  
  5. require_once 'Services/Digg2.php';
  6.  
  7. $sd = new Services_Digg2;
  8. $sd->setVersion('2.0');
  9.  
  10. $links = array('http://apple.com''http://google.com');
  11.  
  12. $result $sd->story->getInfo(array(
  13.     'links'     => implode(','array_map('urlencode'$links)),
  14.     'ctitles'   => 'best_on_camera_interview_since_bubb_rubb,Kings_Of_Leon_Walk_Offstage_After_Three_Songs',
  15.     'story_ids' => '20100719170232:22720024'
  16. ));
  17.  
  18.  
  19. foreach ($result->stories as $story{
  20.     echo "The story {$story->title} has {$story->diggs} diggs\n";
  21. }
  22.  
  23. ?>

Documentation generated on Mon, 11 Mar 2019 15:39:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.