- 22 June 2009
- Kodlama
- 3 Comments
-
Tags: curl, curl delicious, curl php, curl to submit, delicious, php, post delicious, submit post to delicious, submitdelicious, Twitter
cURL & php ile delicious’a otomatik yazı gönderme
22 June 2009 Posted By Osman ERDOĞAN

Daha önce curl ile twitter'a post atma işlemini incelemiştik şimdide sıra geldi delicious'a
PHP:
-
$dusername = 'KullaniciAdi';
-
$dpassword = 'Sifre';
-
-
$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 "<strong>Delicious</strong> HATA";
-
} else {
-
echo "<strong>Delicious</strong> OK";
-
}
3 Responses to “cURL & php ile delicious’a otomatik yazı gönderme”
ben bu api sistemimini aradım ama bir türlü bulamadım teşekkürler
php ve Curl kütüphanesi ile ilgli hazirladigim video eğitim cd si var. ilgilenen arkadaşlar olursa http://www.programlamatv.com/ders/php/curl-kutuphanesi-egitim-cd-si/ de detayi mevcut
bana bir örnek kontor apisi yazıp mincu12@gmail.com adresine gönderebilirminisiz??? Lütfenn çok ihtiyacım varr