• 11-08-2012, 14:54:20
    #1
    Merhaba arkadaşlar bildiğiniz tumblr sitelere yazı gönderme aracı varmı?
  • 11-08-2012, 17:24:40
    #2
    xmlrpc vasıtasıyla yapabilirsiniz.
  • 11-08-2012, 17:26:31
    #3
    Windows Live Yazar
  • 11-08-2012, 17:36:01
    #4
    Üyeliği durduruldu
    program gibi bişey istiyo sanırım arkadaş..
  • 11-08-2012, 17:40:33
    #5
    <?php
    //include('pass.php');
    
    $yol = $_GET['link'];
    $ad = $_GET['ad'];
    
    // Authorization info
    $tumblr_email    = 'mailin@gmail.com';
    $tumblr_password = 'sifren';
    
    // Data for new record
    $post_type  = 'regular';
    $post_title = $_GET['ad'];
    $post_body  = $ad." <br />".$yol."";
    
    // Prepare POST request
    $request_data = http_build_query(
        array(
            'email'     => $tumblr_email,
            'password'  => $tumblr_password,
            'type'      => $post_type,
            'title'     => $post_title,
            'body'      => $post_body,
            'generator' => 'API example'
        )
    );
    
    // Send the POST request (with cURL)
    $c = curl_init('http://www.tumblr.com/api/write');
    curl_setopt($c, CURLOPT_POST, true);
    curl_setopt($c, CURLOPT_POSTFIELDS, $request_data);
    curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
    $result = curl_exec($c);
    $status = curl_getinfo($c, CURLINFO_HTTP_CODE);
    curl_close($c);
    
    // Check for success
    if ($status == 201) {
        echo " $result\n";
    } else if ($status == 403) {
        echo 'Bad email or password';
    } else {
        echo "Error: $result\n";
    }
    
    ?>
    • echo
    • vBDesTabe
    • tommy
    echo, vBDesTabe ve tommy bunu beğendi.
    3 kişi bunu beğendi.
  • 11-08-2012, 18:24:03
    #6
    Dostum bu yöntem çok eskide kaldı tumblr şimdilerde api desteğinde OAuth protokolünü kullanıyor.

    http://www.tumblr.com/docs/en/api/v2

    Misafir adlı üyeden alıntı: mesajı görüntüle
    <?php
    //include('pass.php');
    
    $yol = $_GET['link'];
    $ad = $_GET['ad'];
    
    // Authorization info
    $tumblr_email    = 'mailin@gmail.com';
    $tumblr_password = 'sifren';
    
    // Data for new record
    $post_type  = 'regular';
    $post_title = $_GET['ad'];
    $post_body  = $ad." <br />".$yol."";
    
    // Prepare POST request
    $request_data = http_build_query(
        array(
            'email'     => $tumblr_email,
            'password'  => $tumblr_password,
            'type'      => $post_type,
            'title'     => $post_title,
            'body'      => $post_body,
            'generator' => 'API example'
        )
    );
    
    // Send the POST request (with cURL)
    $c = curl_init('http://www.tumblr.com/api/write');
    curl_setopt($c, CURLOPT_POST, true);
    curl_setopt($c, CURLOPT_POSTFIELDS, $request_data);
    curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
    $result = curl_exec($c);
    $status = curl_getinfo($c, CURLINFO_HTTP_CODE);
    curl_close($c);
    
    // Check for success
    if ($status == 201) {
        echo " $result\n";
    } else if ($status == 403) {
        echo 'Bad email or password';
    } else {
        echo "Error: $result\n";
    }
    
    ?>
  • 11-08-2012, 18:26:29
    #7
    ben nasıl hala kullanabiliyorum ?
  • 11-08-2012, 18:35:45
    #8
    Bu kodu ben 1,5 yıl önce kullanıyordum ve Tumblr'nda OAuth protokolüne bu kodun çalışmadığını görünce farketmiştim. Az önce kodu tekrar denedim çalışıyor. Bir problem yok. Kusura bakma dostum..
  • 11-08-2012, 18:39:54
    #9
    Yardımlarınızdan dolayı teşekkür ederim. Fakat bunu gönderen tr veya yabancı bir program varmı veya yazabilecek biri varmı?