delicious_logo

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

PHP:
  1. $dusername = 'KullaniciAdi';
  2. $dpassword = 'Sifre';
  3. $link = urlencode('$yaziLinki');
  4. $desc = urlencode($yazi_baslik);
  5. $ext = urlencode($yazi_aciklama);
  6. $deltags = urlencode($yazi_etiket);
  7.  
  8. $api = "api.del.icio.us/v1";
  9.  
  10. $apicall = "https://$dusername:$dpassword@$api/posts/add?&url=$link&description=$desc&extended=$ext&tags=$deltags";
  11. $ch = curl_init();
  12. curl_setopt($ch, CURLOPT_URL,$apicall);
  13. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  14. curl_setopt($ch, CURLOPT_USERAGENT, 'php-curl');
  15. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  16. $xml = curl_exec ($ch);
  17. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  18. curl_close($ch);
  19. if ($httpcode != 200) {
  20. echo "<strong>Delicious</strong> HATA";
  21. } else {
  22. echo "<strong>Delicious</strong> OK";
  23. }

Posted By Osman ERDOĞAN

    3 Responses to “cURL & php ile delicious’a otomatik yazı gönderme”

  1. mincu says:

    ben bu api sistemimini aradım ama bir türlü bulamadım teşekkürler

  2. 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

  3. mincu says:

    bana bir örnek kontor apisi yazıp mincu12@gmail.com adresine gönderebilirminisiz??? Lütfenn çok ihtiyacım varr

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Takvim
June 2009
M T W T F S S
« May   Sep »
1234567
891011121314
15161718192021
22232425262728
2930