本文整理汇总了PHP中SaeTClientV2::is_followed_by_id方法的典型用法代码示例。如果您正苦于以下问题:PHP SaeTClientV2::is_followed_by_id方法的具体用法?PHP SaeTClientV2::is_followed_by_id怎么用?PHP SaeTClientV2::is_followed_by_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SaeTClientV2
的用法示例。
在下文中一共展示了SaeTClientV2::is_followed_by_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
if (0 === count($followers_ids)) {
$unpass_tasks = $do_tasks;
} else {
$unpass_tasks = array_diff($do_tasks, $followers_ids['ids']);
}
if (0 != count($unpass_tasks)) {
foreach ($unpass_tasks as $k => $v) {
// $k -- user_id, $v -- uid
$sql = "select nick_name from user where user_id = {$k} limit 1";
$sql_res = $dbo->getRow($sql);
echo 'user_id:' . $k . '; weibo_mid: ' . $v . '; 用户名:' . $sql_res['nick_name'] . "\n";
}
// 对未通过draft1验证的用户进行精确验证
foreach ($unpass_tasks as $k => $v) {
$result = $c->is_followed_by_id($v, $task_uid);
if_weiboapi_fail($result);
if (!$result['target']['following']) {
$failed[$k] = $v;
}
}
echo "failed by draft2\n";
echo "----------------------\n";
if (0 === count($failed)) {
echo "NONE\n";
} else {
foreach ($failed as $k => $v) {
// $k -- user_id, $v -- mid
$sql = "select nick_name from user where user_id = {$k} limit 1";
$sql_res = $dbo->getRow($sql);
echo 'user_id:' . $k . '; sina_uid: ' . $v . '; 用户名:' . $sql_res['nick_name'] . "\n";