$Postlar21 = $wpdb->get_results("SELECT * FROM wpinterest_pins WHERE p_state='pinit' ORDER BY RAND() LIMIT 1 ");
PR($Postlar21[0]);
if($Postlar21){
$Postlar = $Postlar21[0];
$ID = $Postlar->pid;
$Baslik = $Postlar->title;
$ResimYolu = $Postlar->img;
$link = $Postlar->p_link;
$sid = $Postlar->id ;
}
$bot = PinterestBot::create();
$bot->getHttpClient()->useProxy('xxx', '8000', 'xxx:xxx');
$bot->auth->login('xxx', 'xxx');
if ($bot->user->isBanned()) {
echo "Account has been banned!n";
die();
}else
echo "ok";
$infoa = $bot->boards->info("xxx", "xxx");
echo "<h2> ".$infoa['id']." </h2>";
$bid = $infoa['id'];
// create a pin
$pinbot = $bot->pins->create($ResimYolu, $bid, $Baslik, $link,$Baslik);
if($pinbot)
{
echo "<hr><pre>";
print_r($pinbot);
echo "</pre><hr>";
$data = [ 'p_state' => 'pinned' ]; // NULL value.
$format = [ NULL ]; // Ignored when corresponding data is NULL, set to NULL for readability.
$where = [ 'id' =>$sid ]; // NULL value in WHERE clause.
$where_format = [ NULL ]; // Ignored when corresponding WHERE data is NULL, set to NULL for readability.
$wpdb->update( 'wpinterest_pins', $data, $where ); // Also works in this case.
}
else
echo "problem";
bu şekildede serguzek yöntemi ile saatte 1 pin attırıyorum proxy kullanrak özgün pinleri . patlarmı acaba bu yöntemde
deneyen varmıdır acaba ?