我正在尝试使用 photos_getRecent 函数,该函数在源文件中描述为:
function photos_getRecent ($jump_to = NULL, $extras = NULL, $per_page = NULL, $page = NULL)
我正在尝试根据所有者过滤结果,该所有者(根据文档http://www.flickr.com/services/api/flickr.photos.getRecent.htm)存储在 extras 变量中:
“为每条返回的记录获取额外信息的逗号分隔列表。当前支持的字段有:description、license、date_upload、date_taken、owner_name、icon_server、original_format、last_update、geo、tags、machine_tags、o_dims、views、media、path_alias , url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o"
所以我尝试将 extras 变量设置为很多东西:
photos_getRecent(NULL,"owner_name=john citizen",20,NULL);
photos_getRecent(NULL,"owner_name=john_citizen",20,NULL);
photos_getRecent(NULL,"owner_name:john citizen",20,NULL);
photos_getRecent(NULL,"owner_name:john_citizen",20,NULL);
photos_getRecent(NULL,"owner_name,john citizen",20,NULL);
photos_getRecent(NULL,"owner_name,john_citizen",20,NULL);
photos_getRecent(NULL,"owner_name=10000000@N00",20,NULL);
photos_getRecent(NULL,"owner_name:10000000@N00",20,NULL);
photos_getRecent(NULL,"owner_name,10000000@N00",20,NULL);
但他们似乎都没有成功。每次它只是得到一堆随机所有者的随机照片。
不幸的是,文档根本不具体,我在网上找不到任何使用这些东西的例子。
如何正确格式化变量 $extras 让它只为该所有者获取照片?