PHP code example of seregazhuk / tumblr-downloader

1. Go to this page and download the library: Download seregazhuk/tumblr-downloader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

seregazhuk / tumblr-downloader example snippets




use Tumblr\API\Client;
use seregazhuk\TumblrDownloader\Downloader;

$client = new Client(
    'YourConsumerKey', 
    'YourConsumerSecret', 
    'YourToken', 
    'YourSecret'
);

$downloader = new Downloader($client);
$downloader->save('some_blog.tumblr.com');

return [
    'consumer_key'    => 'YourConsumerKey',
    'consumer_secret' => 'YourConsumerSecret',
    'token'           => 'YourToken',
    'token_secret'    => 'YourSecret',
];