1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[GET] Slideshare Auto Submitter

Discussion in 'Black Hat SEO' started by meannn, Feb 4, 2012.

  1. meannn

    meannn Supreme Member

    Joined:
    Apr 22, 2009
    Messages:
    1,461
    Likes Received:
    1,896
    Occupation:
    Unemployed Winner
    Location:
    TR
    I would like to share my script to submit documents to slideshare automatically. You should get your api here
    (At the right, you will see apply for api)
    If you will send too many documents a day, I suggest you to get many apis.

    Download slideshare class here

    submitter.php

    if(isset($_POST['DataSend']))
    {
    $title = $_POST['slideshow_title'];
    $srcfile = $_POST['slideshow_srcfile'];
    if(move_uploaded_file($_FILES["slideshow_srcfile"]["tmp_name"],"upload/" . $_FILES["slideshow_srcfile"]["name"])) {
    $ret .= "File Uploaded to our server";
    }
    else {
    $ret .= "Error File not Uploaded to our server";
    exit();
    }
    include_once 'SSUtil.php';
    $ts=time();
    $secret='some_secret';
    $hash=sha1($secret.$ts);
    $key='Some_key;
    $apiurl='http://www.slideshare.net/api/2/';
    $method = 'upload_slideshow';
    $location = $apiurl.$method."?api_key=".$key."&ts=".$ts."&hash=".$hash;
    $user = "username";
    $password = "password";

    $target = "upload/" . $_FILES['slideshow_srcfile']['name'];
    $srcfile = $target ;
    $ret .= "
    Source File: " . $srcfile;
    $ret .= "
    URL Encoded Source File: " . urlencode($srcfile);

    $curl_apiurl = $location;
    $ch = curl_init();

    $post_params['username'] = urlencode($user);
    $post_params['password'] = urlencode($password);
    $post_params['slideshow_title'] = urlencode($title);
    $post_params['slideshow_srcfile'] = @$srcfile;

    curl_setopt($ch, CURLOPT_URL, $curl_apiurl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);
    $result = curl_exec($ch);
    $ret .= "
    Error: ".curl_error($ch);
    curl_close($ch);
    $ret .= "
    The Result is: ".$result;

    }
    else
    {

    $str="";
    $str=";
    $ret .= $str;
    }
     
    • Thanks Thanks x 1
    Last edited: Feb 4, 2012
  2. dtodo

    dtodo Junior Member

    Joined:
    Nov 20, 2010
    Messages:
    124
    Likes Received:
    25
    I will probe this"! Thanks for sharing mate!