<?php
//...
$tags = $api->photos_search(array(
'text' => 'stuff',
));
foreach ($tags['photo'] as $photo) {
// want to get get the user's actual username from the the "owner"
$ownerId = $photo['owner'];
// getUsernameById($ownerId); // <-- how do you do this?
}发布于 2011-06-17 07:08:15
我从来没有用过这个库,但是根据Flickr API的说法,这个函数最初被称为flickr.people.getInfo。
该PHP类遵循这种命名约定。我会试着
$userinfo = $api->people_getInfo($ownerId);
var_dump($userinfo['username']);祝好运!
https://stackoverflow.com/questions/6379375
复制相似问题