cURL & php ile delicious’a otomatik yazı gönderme

Daha önce curl ile twitter'a post atma işlemini incelemiştik şimdide sıra geldi delicious'a
PLAIN TEXT
PHP:

$dusername = 'KullaniciAdi';

$dpassword = 'Sifre';

$link = urlencode('$yaziLinki');

$desc = urlencode($yazi_baslik);

$ext = urlencode($yazi_aciklama);

$deltags = urlencode($yazi_etiket);

 

$api = "api.del.icio.us/v1";

 

$apicall = "https://$dusername:$dpassword@$api/posts/add?&url=$link&description=$desc&extended=$ext&tags=$deltags";

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$apicall);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

curl_setopt($ch, CURLOPT_USERAGENT, 'php-curl');

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

$xml = curl_exec ($ch);

$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

curl_close($ch);

if ($httpcode != 200) {

echo ...

Luvo designed by Internet Marketing In conjunction with Template Wordpress , R4 DS , Best SUV.