<?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?
}
问问题
698 次
1 回答
1
我从未使用过该库,但根据 Flickr API,该函数最初被调用flickr.people.getInfo
。
该 PHP 类遵循此命名约定。我会尝试
$userinfo = $api->people_getInfo($ownerId);
var_dump($userinfo['username']);
祝你好运!
于 2011-06-16T23:08:15.397 回答