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

Source for file v2_0_user_getInfo.php

Documentation is available at v2_0_user_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. $result $sd->user->getInfo(array(
  11.     'usernames' => 'jhodsdon,d'
  12. ));
  13.  
  14. foreach ($result->users as $user{
  15.     echo "User: {$user->name} is near {$user->location}.\n";
  16. }
  17.  
  18. ?>

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